Enum EPeppolSBDHDataError

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

public enum EPeppolSBDHDataError extends Enum<EPeppolSBDHDataError> implements com.helger.commons.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
    • 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EPeppolSBDHDataError valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getID

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

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

      @Nonnull @Nonempty public String getErrorMessage(@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

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

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