Skip to content

Commit

Permalink
OCPP20: adds new error codes, sorts error codes lexicographically
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoscaz committed May 20, 2024
1 parent 60c2092 commit 96c130a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/ocpp16/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ export enum Action {
}

export enum ErrorCode {
FormationViolation = 'FormationViolation',
GenericError = 'GenericError',
InternalError = 'InternalError',
NotImplemented = 'NotImplemented',
NotSupported = 'NotSupported',
InternalError = 'InternalError',
OccurrenceConstraintViolation = 'OccurrenceConstraintViolation',
PropertyConstraintViolation = 'PropertyConstraintViolation',
ProtocolError = 'ProtocolError',
SecurityError = 'SecurityError',
FormationViolation = 'FormationViolation',
PropertyConstraintViolation = 'PropertyConstraintViolation',
OccurrenceConstraintViolation = 'OccurrenceConstraintViolation',
TypeConstraintViolation = 'TypeConstraintViolation',
GenericError = 'GenericError',
}

export enum MessageType {
Expand Down
12 changes: 7 additions & 5 deletions src/ocpp20/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,18 @@ export enum Action {
}

export enum ErrorCode {
FormationViolation = 'FormationViolation',
GenericError = 'GenericError',
InternalError = 'InternalError',
MessageTypeNotSupported = 'MessageTypeNotSupported',
NotImplemented = 'NotImplemented',
NotSupported = 'NotSupported',
InternalError = 'InternalError',
OccurrenceConstraintViolation = 'OccurrenceConstraintViolation',
PropertyConstraintViolation = 'PropertyConstraintViolation',
ProtocolError = 'ProtocolError',
RpcFrameworkError = 'RpcFrameworkError',
SecurityError = 'SecurityError',
FormationViolation = 'FormationViolation',
PropertyConstraintViolation = 'PropertyConstraintViolation',
OccurrenceConstraintViolation = 'OccurrenceConstraintViolation',
TypeConstraintViolation = 'TypeConstraintViolation',
GenericError = 'GenericError',
}

export enum MessageType {
Expand Down

0 comments on commit 96c130a

Please sign in to comment.