| 1 | export enum ErrorType { |
| 2 | // Requested Action is not known by receiver |
| 3 | NOT_IMPLEMENTED = 'NotImplemented', |
| 4 | // Requested Action is recognized but not supported by the receiver |
| 5 | NOT_SUPPORTED = 'NotSupported', |
| 6 | // An internal error occurred and the receiver was not able to process the requested Action successfully |
| 7 | INTERNAL_ERROR = 'InternalError', |
| 8 | // Payload for Action is incomplete |
| 9 | PROTOCOL_ERROR = 'ProtocolError', |
| 10 | // During the processing of Action a security issue occurred preventing receiver from completing the Action successfully |
| 11 | SECURITY_ERROR = 'SecurityError', |
| 12 | // Payload for Action is syntactically incorrect or not conform the PDU structure for Action |
| 13 | FORMATION_VIOLATION = 'FormationViolation', |
| 14 | FORMAT_VIOLATION = 'FormatViolation', |
| 15 | // Payload is syntactically correct but at least one field contains an invalid value |
| 16 | PROPERTY_CONSTRAINT_VIOLATION = 'PropertyConstraintViolation', |
| 17 | // Payload for Action is syntactically correct but at least one of the fields violates occurrence constraints |
| 18 | OCCURRENCE_CONSTRAINT_VIOLATION = 'OccurrenceConstraintViolation', |
| 19 | // Payload for Action is syntactically correct but at least one of the fields violates data type constraints (e.g. "somestring" = 12) |
| 20 | TYPE_CONSTRAINT_VIOLATION = 'TypeConstraintViolation', |
| 21 | // Any other error not covered by the previous ones |
| 22 | GENERIC_ERROR = 'GenericError' |
| 23 | } |