using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EVCB_OCPP.Packet.Messages
{
public static class OCPPErrorCodes
{
/// 未實作
public static readonly string NotImplemented = "NotImplemented";
/// 可辨識的Action,但是目前不支援
public static readonly string NotSupported = "NotSupported";
/// 可辨識的Action,處理過程中發生問題
public static readonly string InternalError = "InternalError";
///
/// 可辨識的Action,但資料(payload)不完整
///
public static readonly string ProtocolError = "ProtocolError";
///
/// 可辨識的Action,處理過程遇到安全性問題
///
public static readonly string SecurityError = "SecurityError";
///
/// 資料(payload)格式錯誤
///
public static readonly string FormationViolation = "FormationViolation";
///
/// ///
/// 資料(payload)有無效參數
///
///
public static readonly string PropertyConstraintViolation = "PropertyConstraintViolation";
///
/// Payload for Action is syntactically correct but at
/// least one of the fields violates occurence
///constraints
///
public static readonly 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 readonly string TypeConstraintViolation = "TypeConstraintViolation";
///
/// 其他錯誤
///
public static readonly string GenericError = "GenericError";
}
public static class OCPPErrorDescription
{
public static readonly string OccurenceConstraintViolation = "Payload for Action is syntactically correct but at least one of the fields violates occurence constraints";
public static readonly string InternalError = "An internal error occurred and the receiver was not able to process the requested Action successfully";
public static readonly string FormationViolation = "Unable to process action";
public static readonly string NotImplemented = "Requested Action is not known by receiver";
public static readonly string NotChecked = "This EVSE doesn't allow to send another message.";
}
}