ERRTYPE - Result error typeIMPLTYPE - Implementation typepublic abstract static class SingleError.AbstractBuilder<ERRTYPE extends SingleError,IMPLTYPE extends SingleError.AbstractBuilder<ERRTYPE,IMPLTYPE>> extends Object implements IGenericImplTrait<IMPLTYPE>, IBuilder<ERRTYPE>
SingleError and derived classes.| Modifier and Type | Field and Description |
|---|---|
static IErrorLevel |
DEFAULT_ERROR_LEVEL |
protected IErrorLevel |
m_aErrorLevel |
protected ILocation |
m_aErrorLocation |
protected IHasErrorText |
m_aErrorText |
protected Throwable |
m_aLinkedException |
protected String |
m_sErrorFieldName |
protected String |
m_sErrorID |
| Constructor and Description |
|---|
AbstractBuilder() |
AbstractBuilder(IError aError) |
| Modifier and Type | Method and Description |
|---|---|
IMPLTYPE |
errorFieldName(String sErrorFieldName) |
IMPLTYPE |
errorID(String sErrorID) |
IMPLTYPE |
errorLevel(IErrorLevel aErrorLevel) |
IMPLTYPE |
errorLocation(ILocation aErrorLocation) |
IMPLTYPE |
errorLocation(Location aLocator) |
IMPLTYPE |
errorLocation(Locator aLocator) |
IMPLTYPE |
errorLocation(SAXParseException aLocator) |
IMPLTYPE |
errorLocation(String sErrorLocation)
Set a simple error location without line and column number
|
IMPLTYPE |
errorText(IHasErrorText aErrorText) |
IMPLTYPE |
errorText(IMultilingualText aMLT) |
IMPLTYPE |
errorText(String sErrorText) |
IMPLTYPE |
linkedException(Throwable aLinkedException) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitthisAsTpublic static final IErrorLevel DEFAULT_ERROR_LEVEL
protected IErrorLevel m_aErrorLevel
protected String m_sErrorID
protected String m_sErrorFieldName
protected ILocation m_aErrorLocation
protected IHasErrorText m_aErrorText
protected Throwable m_aLinkedException
@Nonnull public final IMPLTYPE errorLevel(@Nonnull IErrorLevel aErrorLevel)
@Nonnull public final IMPLTYPE errorLocation(@Nullable String sErrorLocation)
sErrorLocation - Error location string@Nonnull public final IMPLTYPE errorLocation(@Nullable SAXParseException aLocator)
@Nonnull public final IMPLTYPE errorText(@Nullable IMultilingualText aMLT)
@Nonnull public final IMPLTYPE errorText(@Nullable IHasErrorText aErrorText)
Copyright © 2014–2022 Philip Helger. All rights reserved.