Package com.helger.schematron.svrl
Class SVRLResourceError
- java.lang.Object
-
- com.helger.commons.error.SingleError
-
- com.helger.schematron.svrl.SVRLResourceError
-
- All Implemented Interfaces:
com.helger.commons.error.IError
,com.helger.commons.error.IHasErrorField
,com.helger.commons.error.IHasErrorID
,com.helger.commons.error.level.IHasErrorLevel
,com.helger.commons.error.level.IHasErrorLevelComparable<com.helger.commons.error.IError>
,com.helger.commons.severity.ISeverityComparable<com.helger.commons.error.IError>
,com.helger.commons.state.IErrorIndicator
,com.helger.commons.state.ISuccessIndicator
,com.helger.commons.traits.IGenericImplTrait<com.helger.commons.error.IError>
public class SVRLResourceError extends com.helger.commons.error.SingleError
Special SVRL resource error that contains the Schematron "test" as well.- Author:
- Philip Helger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SVRLResourceError.SVRLErrorBuilder
-
Nested classes/interfaces inherited from class com.helger.commons.error.SingleError
com.helger.commons.error.SingleError.AbstractBuilder<ERRTYPE extends com.helger.commons.error.SingleError,IMPLTYPE extends com.helger.commons.error.SingleError.AbstractBuilder<ERRTYPE,IMPLTYPE>>, com.helger.commons.error.SingleError.Builder
-
-
Constructor Summary
Constructors Constructor Description SVRLResourceError(LocalDateTime aErrorDT, com.helger.commons.error.level.IErrorLevel aErrorLevel, String sErrorID, String sErrorFieldName, com.helger.commons.location.ILocation aErrorLocation, com.helger.commons.error.text.IHasErrorText aErrorText, Throwable aLinkedException, String sTest)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAsString(Locale aContentLocale)
String
getTest()
int
hashCode()
String
toString()
-
Methods inherited from class com.helger.commons.error.SingleError
builder, builder, builderError, builderFatalError, builderInfo, builderSuccess, builderWarn, equalsLinkedException, getErrorDateTime, getErrorFieldName, getErrorID, getErrorLevel, getErrorLocation, getErrorTexts, getLinkedException, hashCodeLinkedException
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.error.IError
getErrorText, getLinkedExceptionCause, getLinkedExceptionMessage, getLinkedExceptionStackTrace, hasErrorDateTime, hasErrorLocation, hasLinkedException
-
Methods inherited from interface com.helger.commons.error.IHasErrorField
hasErrorFieldName, hasErrorFieldName, hasNoErrorFieldName
-
Methods inherited from interface com.helger.commons.error.IHasErrorID
hasErrorID, hasErrorID, hasNoErrorID
-
Methods inherited from interface com.helger.commons.error.level.IHasErrorLevel
hasErrorLevel, isError, isFailure, isNoError, isSuccess
-
-
-
-
Constructor Detail
-
SVRLResourceError
public SVRLResourceError(@Nullable LocalDateTime aErrorDT, @Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel, @Nullable String sErrorID, @Nullable String sErrorFieldName, @Nullable com.helger.commons.location.ILocation aErrorLocation, @Nullable com.helger.commons.error.text.IHasErrorText aErrorText, @Nullable Throwable aLinkedException, @Nonnull String sTest)
Constructor.- Parameters:
aErrorDT
- Error date timeaErrorLevel
- The error level. May not benull
.sErrorID
- Error ID. May benull
.sErrorFieldName
- Error field name. May benull
.aErrorLocation
- Location where the error occurred. May benull
.aErrorText
- The error text. May benull
.aLinkedException
- An exception that caused the error. May benull
.sTest
- The SVRL test that triggered this error. May not benull
.
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.helger.commons.error.SingleError
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.helger.commons.error.SingleError
-
toString
public String toString()
- Overrides:
toString
in classcom.helger.commons.error.SingleError
-
-