T - Result typeIMPLTYPE - Implementation typepublic abstract static class SingleError.AbstractBuilder<T extends SingleError,IMPLTYPE extends SingleError.AbstractBuilder<T,IMPLTYPE>> extends Object implements IGenericImplTrait<IMPLTYPE>
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 |
|---|---|
abstract T |
build() |
IMPLTYPE |
setErrorFieldName(String sErrorFieldName) |
IMPLTYPE |
setErrorID(String sErrorID) |
IMPLTYPE |
setErrorLevel(IErrorLevel aErrorLevel) |
IMPLTYPE |
setErrorLocation(ILocation aErrorLocation) |
IMPLTYPE |
setErrorLocation(String sErrorLocation)
Set a simple error location without line and column number
|
IMPLTYPE |
setErrorText(IHasErrorText aErrorText) |
IMPLTYPE |
setErrorText(IMultilingualText aMLT) |
IMPLTYPE |
setErrorText(String sErrorText) |
IMPLTYPE |
setLinkedException(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 setErrorLevel(@Nonnull IErrorLevel aErrorLevel)
@Nonnull public final IMPLTYPE setErrorFieldName(@Nullable String sErrorFieldName)
@Nonnull public final IMPLTYPE setErrorLocation(@Nullable String sErrorLocation)
sErrorLocation - Error location string@Nonnull public final IMPLTYPE setErrorLocation(@Nullable ILocation aErrorLocation)
@Nonnull public final IMPLTYPE setErrorText(@Nullable IMultilingualText aMLT)
@Nonnull public final IMPLTYPE setErrorText(@Nullable IHasErrorText aErrorText)
@Nonnull public final IMPLTYPE setLinkedException(@Nullable Throwable aLinkedException)
Copyright © 2014–2019 Philip Helger. All rights reserved.