Package com.helger.commons.error
Class SingleError.AbstractBuilder<ERRTYPE extends SingleError,IMPLTYPE extends SingleError.AbstractBuilder<ERRTYPE,IMPLTYPE>>
- java.lang.Object
-
- com.helger.commons.error.SingleError.AbstractBuilder<ERRTYPE,IMPLTYPE>
-
- Type Parameters:
ERRTYPE- Result error typeIMPLTYPE- Implementation type
- All Implemented Interfaces:
IBuilder<ERRTYPE>,IGenericImplTrait<IMPLTYPE>
- Direct Known Subclasses:
SingleError.Builder
- Enclosing class:
- SingleError
public abstract static class SingleError.AbstractBuilder<ERRTYPE extends SingleError,IMPLTYPE extends SingleError.AbstractBuilder<ERRTYPE,IMPLTYPE>> extends Object implements IGenericImplTrait<IMPLTYPE>, IBuilder<ERRTYPE>
Abstract builder class forSingleErrorand derived classes.- Author:
- Philip Helger
-
-
Field Summary
Fields Modifier and Type Field Description static IErrorLevelDEFAULT_ERROR_LEVELprotected LocalDateTimem_aErrorDTprotected IErrorLevelm_aErrorLevelprotected ILocationm_aErrorLocationprotected IHasErrorTextm_aErrorTextprotected Throwablem_aLinkedExceptionprotected Stringm_sErrorFieldNameprotected Stringm_sErrorID
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBuilder()protectedAbstractBuilder(IError aError)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMPLTYPEdateTime(LocalDateTime aErrorDT)IMPLTYPEdateTimeNow()IMPLTYPEerrorFieldName(String sErrorFieldName)IMPLTYPEerrorID(String sErrorID)IMPLTYPEerrorLevel(IErrorLevel aErrorLevel)IMPLTYPEerrorLocation(ILocation aErrorLocation)IMPLTYPEerrorLocation(String sErrorLocation)Set a simple error location without line and column numberIMPLTYPEerrorLocation(Location aLocator)IMPLTYPEerrorLocation(Locator aLocator)IMPLTYPEerrorLocation(SAXParseException aLocator)IMPLTYPEerrorText(IHasErrorText aErrorText)IMPLTYPEerrorText(IMultilingualText aMLT)IMPLTYPEerrorText(String sErrorText)IMPLTYPElinkedException(Throwable aLinkedException)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
-
-
-
Field Detail
-
DEFAULT_ERROR_LEVEL
public static final IErrorLevel DEFAULT_ERROR_LEVEL
-
m_aErrorDT
protected LocalDateTime m_aErrorDT
-
m_aErrorLevel
protected IErrorLevel m_aErrorLevel
-
m_sErrorID
protected String m_sErrorID
-
m_sErrorFieldName
protected String m_sErrorFieldName
-
m_aErrorLocation
protected ILocation m_aErrorLocation
-
m_aErrorText
protected IHasErrorText m_aErrorText
-
m_aLinkedException
protected Throwable m_aLinkedException
-
-
Method Detail
-
dateTime
@Nonnull public final IMPLTYPE dateTime(@Nullable LocalDateTime aErrorDT)
-
errorLevel
@Nonnull public final IMPLTYPE errorLevel(@Nonnull IErrorLevel aErrorLevel)
-
errorLocation
@Nonnull public final IMPLTYPE errorLocation(@Nullable String sErrorLocation)
Set a simple error location without line and column number- Parameters:
sErrorLocation- Error location string- Returns:
- this for chaining
- Since:
- 9.0.2
-
errorLocation
@Nonnull public final IMPLTYPE errorLocation(@Nullable SAXParseException aLocator)
-
errorText
@Nonnull public final IMPLTYPE errorText(@Nullable IMultilingualText aMLT)
-
errorText
@Nonnull public final IMPLTYPE errorText(@Nullable IHasErrorText aErrorText)
-
-