Enum Class EPeppolSBDHDataError

java.lang.Object
java.lang.Enum<EPeppolSBDHDataError>
com.helger.peppol.sbdh.EPeppolSBDHDataError
All Implemented Interfaces:
com.helger.base.id.IHasID<String>, Serializable, Comparable<EPeppolSBDHDataError>, Constable

public enum EPeppolSBDHDataError extends Enum<EPeppolSBDHDataError> implements com.helger.base.id.IHasID<String>
This enum contains all the errors that can occur during SBD reading
Author:
Philip Helger
  • Enum Constant Details

    • INVALID_SBD_XML

      public static final EPeppolSBDHDataError INVALID_SBD_XML
      Failed to interpret StandardBusinessDocument as XML
    • MISSING_SBDH

      public static final EPeppolSBDHDataError MISSING_SBDH
      The StandardBusinessDocumentHeader element is not present
    • INVALID_HEADER_VERSION

      public static final EPeppolSBDHDataError INVALID_HEADER_VERSION
      The "HeaderVersion" element has an illegal value
    • INVALID_SENDER_COUNT

      public static final EPeppolSBDHDataError INVALID_SENDER_COUNT
      Not exactly one "Sender" element is present
    • INVALID_SENDER_AUTHORITY

      public static final EPeppolSBDHDataError INVALID_SENDER_AUTHORITY
      The "Sender/Identifier/Authority" attribute has an invalid value
    • INVALID_SENDER_VALUE

      public static final EPeppolSBDHDataError INVALID_SENDER_VALUE
      The "Sender/Identifier" has an invalid value
    • INVALID_RECEIVER_COUNT

      public static final EPeppolSBDHDataError INVALID_RECEIVER_COUNT
      Not exactly one "Receiver" element is present
    • INVALID_RECEIVER_AUTHORITY

      public static final EPeppolSBDHDataError INVALID_RECEIVER_AUTHORITY
      The "Receiver/Identifier/Authority" attribute has an invalid value
    • INVALID_RECEIVER_VALUE

      public static final EPeppolSBDHDataError INVALID_RECEIVER_VALUE
      The "Receiver/Identifier" has an invalid value
    • BUSINESS_SCOPE_MISSING

      public static final EPeppolSBDHDataError BUSINESS_SCOPE_MISSING
      The "BusinessScope" element is missing
    • INVALID_SCOPE_COUNT

      public static final EPeppolSBDHDataError INVALID_SCOPE_COUNT
      At least two "BusinessScope/Scope" elements must be present
    • INVALID_DOCUMENT_TYPE_IDENTIFIER

      public static final EPeppolSBDHDataError INVALID_DOCUMENT_TYPE_IDENTIFIER
      The provided document type identifier is invalid
    • INVALID_PROCESS_IDENTIFIER

      public static final EPeppolSBDHDataError INVALID_PROCESS_IDENTIFIER
      The provided process identifier is invalid
    • INVALID_COUNTRY_C1

      public static final EPeppolSBDHDataError INVALID_COUNTRY_C1
      The provided C1 country code is invalid
    • INVALID_MLS_TO

      public static final EPeppolSBDHDataError INVALID_MLS_TO
      The provided MLS_TO value is invalid
    • INVALID_MLS_TYPE

      public static final EPeppolSBDHDataError INVALID_MLS_TYPE
      The provided MLS_TYPE value is invalid
    • MISSING_DOCUMENT_TYPE_IDENTIFIER

      public static final EPeppolSBDHDataError MISSING_DOCUMENT_TYPE_IDENTIFIER
      The document type identifier is missing
    • MISSING_PROCESS_IDENTIFIER

      public static final EPeppolSBDHDataError MISSING_PROCESS_IDENTIFIER
      The process identifier is missing
    • MISSING_COUNTRY_C1

      public static final EPeppolSBDHDataError MISSING_COUNTRY_C1
      The C1 country code is missing
    • INVALID_BUSINESS_MESSAGE

      public static final EPeppolSBDHDataError INVALID_BUSINESS_MESSAGE
      The main business message is invalid
    • INVALID_STANDARD

      public static final EPeppolSBDHDataError INVALID_STANDARD
      The value of the "DocumentIdentification/Standard" element is invalid
    • INVALID_TYPE_VERSION

      public static final EPeppolSBDHDataError INVALID_TYPE_VERSION
      The value of the "DocumentIdentification/TypeVersion" element is invalid
    • INVALID_TYPE

      public static final EPeppolSBDHDataError INVALID_TYPE
      The value of the "DocumentIdentification/Type" element is invalid
    • INVALID_INSTANCE_IDENTIFIER

      public static final EPeppolSBDHDataError INVALID_INSTANCE_IDENTIFIER
      The value of the "DocumentIdentification/InstanceIdentifier" element is invalid
    • INVALID_CREATION_DATE_TIME

      public static final EPeppolSBDHDataError INVALID_CREATION_DATE_TIME
      The value of the "DocumentIdentification/CreationDateAndTime" element is invalid
    • GENERIC_SBDH_ERROR

      public static final EPeppolSBDHDataError GENERIC_SBDH_ERROR
      This is a fallback error code, in case the ID cannot be resolved to a proper other error code.
      Since:
      9.1.4
  • Method Details

    • values

      public static EPeppolSBDHDataError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EPeppolSBDHDataError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getID

      @Nonempty public @NonNull @Nonempty String getID()
      Specified by:
      getID in interface com.helger.base.id.IHasID<String>
    • getErrorMessage

      @Nonempty public @NonNull @Nonempty String getErrorMessage()
      Returns:
      The English error message
    • getErrorMessage

      @Nonempty public @NonNull @Nonempty String getErrorMessage(@Nonempty @NonNull @Nonempty Object... aArgs)
      Parameters:
      aArgs - The arguments to format with. May neither be null nor empty.
      Returns:
      The English error message, formatted with parameters.
    • getFromIDOrNull

      public static @Nullable EPeppolSBDHDataError getFromIDOrNull(@Nullable String sID)
    • getFromIDOrDefault

      public static @Nullable EPeppolSBDHDataError getFromIDOrDefault(@Nullable String sID, @Nullable EPeppolSBDHDataError eDefault)