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 IErrorLevel
protected LocalDateTime
protected IErrorLevel
protected ILocation
protected IHasErrorText
protected Throwable
protected String
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IMPLTYPE
dateTime
(LocalDateTime aErrorDT) final IMPLTYPE
final IMPLTYPE
errorFieldName
(String sErrorFieldName) final IMPLTYPE
final IMPLTYPE
errorLevel
(IErrorLevel aErrorLevel) final IMPLTYPE
errorLocation
(ILocation aErrorLocation) final IMPLTYPE
errorLocation
(String sErrorLocation) Set a simple error location without line and column numberfinal IMPLTYPE
errorLocation
(Location aLocator) final IMPLTYPE
errorLocation
(Locator aLocator) final IMPLTYPE
errorLocation
(SAXParseException aLocator) final IMPLTYPE
errorText
(IHasErrorText aErrorText) final IMPLTYPE
errorText
(IMultilingualText aMLT) final IMPLTYPE
final IMPLTYPE
linkedException
(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 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
-