Class 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 interface com.helger.commons.error.IError

        getErrorText, getLinkedExceptionCause, getLinkedExceptionMessage, getLinkedExceptionStackTrace, hasErrorDateTime, hasErrorLocation, hasLinkedException
      • Methods inherited from interface com.helger.commons.traits.IGenericImplTrait

        thisAsT
      • 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
      • Methods inherited from interface com.helger.commons.error.level.IHasErrorLevelComparable

        compareTo, isEQ, isGE, isGT, isLE, isLT, isNE
      • Methods inherited from interface com.helger.commons.state.ISuccessIndicator

        and, or
    • 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 time
        aErrorLevel - The error level. May not be null.
        sErrorID - Error ID. May be null.
        sErrorFieldName - Error field name. May be null.
        aErrorLocation - Location where the error occurred. May be null.
        aErrorText - The error text. May be null.
        aLinkedException - An exception that caused the error. May be null.
        sTest - The SVRL test that triggered this error. May not be null.
    • Method Detail

      • getTest

        @Nonnull
        public String getTest()
        Returns:
        The SVRL test that triggered this error.
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.helger.commons.error.SingleError
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.helger.commons.error.SingleError
      • toString

        public String toString()
        Overrides:
        toString in class com.helger.commons.error.SingleError