pub struct ErrorCodes;Expand description
Standard error codes for validation issues.
Implementations§
Source§impl ErrorCodes
impl ErrorCodes
Sourcepub const MISSING_MANDATORY_SEGMENT: &'static str = "STR001"
pub const MISSING_MANDATORY_SEGMENT: &'static str = "STR001"
A mandatory segment is missing.
Sourcepub const MAX_REPETITIONS_EXCEEDED: &'static str = "STR002"
pub const MAX_REPETITIONS_EXCEEDED: &'static str = "STR002"
Segment repetitions exceed the MIG MaxRep count.
Sourcepub const UNEXPECTED_SEGMENT: &'static str = "STR003"
pub const UNEXPECTED_SEGMENT: &'static str = "STR003"
Unexpected segment found (not defined in MIG for this message type).
Sourcepub const WRONG_SEGMENT_ORDER: &'static str = "STR004"
pub const WRONG_SEGMENT_ORDER: &'static str = "STR004"
Segments are in wrong order according to the MIG.
Sourcepub const MISSING_MANDATORY_GROUP: &'static str = "STR005"
pub const MISSING_MANDATORY_GROUP: &'static str = "STR005"
A mandatory segment group is missing.
Sourcepub const GROUP_MAX_REP_EXCEEDED: &'static str = "STR006"
pub const GROUP_MAX_REP_EXCEEDED: &'static str = "STR006"
Segment group repetitions exceed MaxRep count.
Sourcepub const UNT_SEGMENT_COUNT_MISMATCH: &'static str = "STR007"
pub const UNT_SEGMENT_COUNT_MISMATCH: &'static str = "STR007"
UNT segment count does not match the actual number of segments.
Sourcepub const SKIPPED_UNKNOWN_SEGMENT: &'static str = "STR008"
pub const SKIPPED_UNKNOWN_SEGMENT: &'static str = "STR008"
A segment was present in the EDIFACT input but the PID-filtered MIG has no slot for it. The assembler advanced past it (skip mode on), so subsequent legitimate content still assembled, but the message contains data outside the AHB and callers should surface it.
Sourcepub const VALUE_TOO_LONG: &'static str = "FMT001"
pub const VALUE_TOO_LONG: &'static str = "FMT001"
Value exceeds maximum allowed length.
Sourcepub const INVALID_NUMERIC_FORMAT: &'static str = "FMT002"
pub const INVALID_NUMERIC_FORMAT: &'static str = "FMT002"
Value does not match required numeric format.
Sourcepub const INVALID_ALPHANUMERIC_FORMAT: &'static str = "FMT003"
pub const INVALID_ALPHANUMERIC_FORMAT: &'static str = "FMT003"
Value does not match required alphanumeric format.
Sourcepub const INVALID_DATE_FORMAT: &'static str = "FMT004"
pub const INVALID_DATE_FORMAT: &'static str = "FMT004"
Invalid date/time format.
Sourcepub const VALUE_TOO_SHORT: &'static str = "FMT005"
pub const VALUE_TOO_SHORT: &'static str = "FMT005"
Value is shorter than minimum required length.
Sourcepub const REQUIRED_ELEMENT_EMPTY: &'static str = "FMT006"
pub const REQUIRED_ELEMENT_EMPTY: &'static str = "FMT006"
A required element is empty.
Sourcepub const INVALID_CODE_VALUE: &'static str = "COD001"
pub const INVALID_CODE_VALUE: &'static str = "COD001"
Code value is not in the allowed code list for this element.
Sourcepub const CODE_NOT_ALLOWED_FOR_PID: &'static str = "COD002"
pub const CODE_NOT_ALLOWED_FOR_PID: &'static str = "COD002"
Code value is not allowed for this specific Pruefidentifikator.
Sourcepub const MISSING_REQUIRED_FIELD: &'static str = "AHB001"
pub const MISSING_REQUIRED_FIELD: &'static str = "AHB001"
A field required by the AHB for this PID is missing.
Sourcepub const FIELD_NOT_ALLOWED_FOR_PID: &'static str = "AHB002"
pub const FIELD_NOT_ALLOWED_FOR_PID: &'static str = "AHB002"
A field is present but not allowed by the AHB for this PID.
Sourcepub const CONDITIONAL_RULE_VIOLATION: &'static str = "AHB003"
pub const CONDITIONAL_RULE_VIOLATION: &'static str = "AHB003"
A conditional AHB rule is violated.
Sourcepub const UNKNOWN_PRUEFIDENTIFIKATOR: &'static str = "AHB004"
pub const UNKNOWN_PRUEFIDENTIFIKATOR: &'static str = "AHB004"
The Pruefidentifikator is unknown / not supported.
Sourcepub const CONDITION_UNKNOWN: &'static str = "AHB005"
pub const CONDITION_UNKNOWN: &'static str = "AHB005"
A condition expression could not be fully evaluated (Unknown result).
Sourcepub const PACKAGE_CARDINALITY_VIOLATION: &'static str = "AHB006"
pub const PACKAGE_CARDINALITY_VIOLATION: &'static str = "AHB006"
Package cardinality constraint violated: count of present codes outside [min..max].