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 for
SingleError and derived classes.- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IErrorLevelprotected LocalDateTimeprotected IErrorLevelprotected ILocationprotected IHasErrorTextprotected Throwableprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IMPLTYPEdateTime(LocalDateTime aErrorDT) final IMPLTYPEfinal IMPLTYPEerrorFieldName(String sErrorFieldName) final IMPLTYPEfinal IMPLTYPEerrorLevel(IErrorLevel aErrorLevel) final IMPLTYPEerrorLocation(ILocation aErrorLocation) final IMPLTYPEerrorLocation(String sErrorLocation) Set a simple error location without line and column numberfinal IMPLTYPEerrorLocation(Location aLocator) final IMPLTYPEerrorLocation(Locator aLocator) final IMPLTYPEerrorLocation(SAXParseException aLocator) final IMPLTYPEerrorText(IHasErrorText aErrorText) final IMPLTYPEerrorText(IMultilingualText aMLT) final IMPLTYPEfinal IMPLTYPElinkedException(Throwable aLinkedException) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Field Details
-
DEFAULT_ERROR_LEVEL
-
m_aErrorDT
-
m_aErrorLevel
-
m_sErrorID
-
m_sErrorFieldName
-
m_aErrorLocation
-
m_aErrorText
-
m_aLinkedException
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder() -
AbstractBuilder
-
-
Method Details
-
dateTimeNow
-
dateTime
-
errorLevel
-
errorID
-
errorFieldName
-
errorLocation
Set a simple error location without line and column number- Parameters:
sErrorLocation- Error location string- Returns:
- this for chaining
- Since:
- 9.0.2
-
errorLocation
-
errorLocation
-
errorLocation
-
errorLocation
-
errorText
-
errorText
-
errorText
-
linkedException
-