Package com.helger.peppol.xhe.read
Enum EDBNAllianceXHEDataReadError
java.lang.Object
java.lang.Enum<EDBNAllianceXHEDataReadError>
com.helger.peppol.xhe.read.EDBNAllianceXHEDataReadError
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EDBNAllianceXHEDataReadError>,java.lang.constant.Constable
public enum EDBNAllianceXHEDataReadError
extends Enum<EDBNAllianceXHEDataReadError>
implements com.helger.commons.id.IHasID<String>
This enum contains all the errors that can occur during XHE reading
- Author:
- Robinson Garcia
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe "XHE/CustomizationID" element is missingThis is a fallback error code, in case the ID cannot be resolved to a proper other error code.The "XHE/Header" element is missingThe "XHE/Payloads/Payload/InstanceEncryptionIndicator" has an invalid valueThe main business message is invalidThe "XHE/Payloads/Payload/ContentTypeCode/listID" has an invalid valueThe "XHE/Payloads/Payload/ContentTypeCode" has an invalid valueThe value of the "XHE/Header/CreationDateAndTime" element is invalidThe "XHE/CustomizationID/schemaID" attribute has an invalid valueThe "XHE/CustomizationID" has an invalid valueNot exactly one "XHE/Header/FromParty" element is presentThe "XHE/Header/FromParty/PartyIdentification/ID/schemaID" attribute has an invalid valueThe "XHE/Header/FromParty/PartyIdentification/ID" has an invalid valueThe "XHE/Header/ID" has an invalid valueThe "XHE/Payloads/Payload/InstanceEncryptionIndicator" has an invalid valueThe "XHE/Payloads/Payload/ID" has an invalid valueThe "XHE/ProfileID/schemaID" attribute has an invalid valueThe "XHE/ProfileID" has an invalid valueNot exactly one "XHE/Header/ToParty" element is presentNot exactly one "XHE/Header/ToParty" element is presentThe "XHE/Header/ToParty/PartyIdentification/ID/schemaID" attribute has an invalid valueThe "XHE/Header/FromParty/PartyIdentification/ID" has an invalid valueThe "HeaderVersion" element has an illegal valueFailed to interpret ExchangeHeaderEnvelope as XMLThe StandardBusinessDocumentHeader element is not presentThe "XHE/ProfileID" element is missing -
Method Summary
Modifier and TypeMethodDescriptiongetErrorMessage(Object... aArgs) static EDBNAllianceXHEDataReadErrorgetFromIDOrDefault(String sID, EDBNAllianceXHEDataReadError eDefault) static EDBNAllianceXHEDataReadErrorgetFromIDOrNull(String sID) getID()static EDBNAllianceXHEDataReadErrorReturns the enum constant of this type with the specified name.static EDBNAllianceXHEDataReadError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INVALID_XHE_XML
Failed to interpret ExchangeHeaderEnvelope as XML -
MISSING_PAYLOADS_PAYLOAD
The StandardBusinessDocumentHeader element is not present -
INVALID_XHE_VERSION_ID
The "HeaderVersion" element has an illegal value -
CUSTOMIZATION_ID_MISSING
The "XHE/CustomizationID" element is missing -
INVALID_CUSTOMIZATION_ID_SCHEMA_ID
The "XHE/CustomizationID/schemaID" attribute has an invalid value -
INVALID_CUSTOMIZATION_ID_VALUE
The "XHE/CustomizationID" has an invalid value -
PROFILE_ID_MISSING
The "XHE/ProfileID" element is missing -
INVALID_PROFILE_ID_SCHEMA_ID
The "XHE/ProfileID/schemaID" attribute has an invalid value -
INVALID_PROFILE_ID_VALUE
The "XHE/ProfileID" has an invalid value -
HEADER_MISSING
The "XHE/Header" element is missing -
INVALID_HEADER_ID
The "XHE/Header/ID" has an invalid value -
INVALID_CREATION_DATE_TIME
The value of the "XHE/Header/CreationDateAndTime" element is invalid -
INVALID_FROM_PARTY_COUNT
Not exactly one "XHE/Header/FromParty" element is present -
INVALID_FROM_PARTY_SCHEMA_ID
The "XHE/Header/FromParty/PartyIdentification/ID/schemaID" attribute has an invalid value -
INVALID_FROM_PARTY_VALUE
The "XHE/Header/FromParty/PartyIdentification/ID" has an invalid value -
INVALID_TO_PARTY_COUNT
Not exactly one "XHE/Header/ToParty" element is present -
INVALID_TO_PARTY_IDENTIFICATION_COUNT
Not exactly one "XHE/Header/ToParty" element is present -
INVALID_TO_PARTY_SCHEMA_ID
The "XHE/Header/ToParty/PartyIdentification/ID/schemaID" attribute has an invalid value -
INVALID_TO_PARTY_VALUE
The "XHE/Header/FromParty/PartyIdentification/ID" has an invalid value -
INVALID_PAYLOAD_ID_VALUE
The "XHE/Payloads/Payload/ID" has an invalid value -
INVALID_CONTENT_TYPE_CODE_LIST_ID
The "XHE/Payloads/Payload/ContentTypeCode/listID" has an invalid value -
INVALID_CONTENT_TYPE_CODE_VALUE
The "XHE/Payloads/Payload/ContentTypeCode" has an invalid value -
INVALID_INSTANCE_ENCRYPTION_INDICATOR_VALUE
The "XHE/Payloads/Payload/InstanceEncryptionIndicator" has an invalid value -
INSTANCE_ENCRYPTION_INDICATOR_MISSING
The "XHE/Payloads/Payload/InstanceEncryptionIndicator" has an invalid value -
INVALID_BUSINESS_MESSAGE
The main business message is invalid -
GENERIC_XHE_ERROR
This is a fallback error code, in case the ID cannot be resolved to a proper other error code.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getID
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getErrorMessage
- Returns:
- The English error message
-
getErrorMessage
- Parameters:
aArgs- The arguments to format with. May neither benullnor empty.- Returns:
- The English error message, formatted with parameters.
-
getFromIDOrNull
-
getFromIDOrDefault
@Nullable public static EDBNAllianceXHEDataReadError getFromIDOrDefault(@Nullable String sID, @Nullable EDBNAllianceXHEDataReadError eDefault)
-