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 
     

    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

    Modifier and Type
    Method
    Description
    boolean
     
    getAsString(Locale aContentLocale)
     
     
    int
     
     

    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

    getAsStringLocaleIndepdent, 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 Details

    • 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 Details

    • getTest

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

      public String getAsString(@Nonnull Locale aContentLocale)
    • 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