/* * OCPP.Core - https://github.com/dallmann-consulting/OCPP.Core * Copyright (C) 2020-2021 dallmann consulting GmbH. * All Rights Reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace OCPP.Core.Server.Messages_OCPP16 { /// /// Defined OCPP error codes /// public class ErrorCodes { /// /// Requested Action is recognized but not supported by the receiver /// public static string NotSupported = "NotSupported"; /// /// InternalError An internal error occurred and the receiver was not able to process the requested Action successfully /// public static string InternalError = "InternalError"; /// /// Payload for Action is incomplete /// public static string ProtocolError = "ProtocolError"; /// /// During the processing of Action a security issue occurred preventing receiver from completing the Action successfully /// public static string SecurityError = "SecurityError"; /// /// Payload for Action is syntactically incorrect or not conform the PDU structure for Action /// public static string FormationViolation = "FormationViolation"; /// /// Payload is syntactically correct but at least one field contains an invalid value /// public static string PropertyConstraintViolation = "PropertyConstraintViolation"; /// /// Payload for Action is syntactically correct but at least one of the fields violates occurence constraints /// public static string OccurenceConstraintViolation = "OccurenceConstraintViolation"; /// /// Payload for Action is syntactically correct but at least one of the fields violates data type constraints(e.g. “somestring”: 12) /// public static string TypeConstraintViolation = "TypeConstraintViolation"; /// /// Any other error not covered by the previous ones /// public static string GenericError = "GenericError"; } }