refactor: more coding style fixes
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / ErrorType.ts
CommitLineData
d2a64eb5
JB
1export 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',
e3018bc4 14 FORMAT_VIOLATION = 'FormatViolation',
d2a64eb5 15 // Payload is syntactically correct but at least one field contains an invalid value
e3018bc4
JB
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',
d2a64eb5 21 // Any other error not covered by the previous ones
a807045b 22 GENERIC_ERROR = 'GenericError',
d2a64eb5 23}