pub enum RpcErrorCode {
FormatViolation,
GenericError,
InternalError,
MessageTypeNotSupported,
NotImplemented,
NotSupported,
OccurrenceConstraintViolation,
PropertyConstraintViolation,
ProtocolError,
RpcFrameworkError,
SecurityError,
TypeConstraintViolation,
}Expand description
One of the error codes OCPP-J 2.1 allows in a CALLERROR frame.
Variants§
FormatViolation
Payload for Action is syntactically incorrect
GenericError
Any other error not covered by the more specific error codes in this table
InternalError
An internal error occurred and the receiver was not able to process the requested Action successfully
MessageTypeNotSupported
A message with an Message Type Number received that is not supported by this implementation.
NotImplemented
Requested Action is not known by receiver
NotSupported
Requested Action is recognized but not supported by the receiver
OccurrenceConstraintViolation
Payload for Action is syntactically correct but at least one of the fields violates occurrence constraints
PropertyConstraintViolation
Payload is syntactically correct but at least one field contains an invalid value
ProtocolError
Payload for Action is not conform the PDU structure
RpcFrameworkError
Content of the call is not a valid RPC Request, for example: MessageId could not be read.
SecurityError
During the processing of Action a security issue occurred preventing receiver from completing the Action successfully
TypeConstraintViolation
Payload for Action is syntactically correct but at least one of the fields violates data type constraints (e.g. “somestring”: 12)
Implementations§
Source§impl RpcErrorCode
impl RpcErrorCode
Sourcepub const fn description(&self) -> &'static str
pub const fn description(&self) -> &'static str
The spec’s own description for this error code (see Display,
which uses this).
Trait Implementations§
Source§impl Clone for RpcErrorCode
impl Clone for RpcErrorCode
Source§fn clone(&self) -> RpcErrorCode
fn clone(&self) -> RpcErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RpcErrorCode
Source§impl Debug for RpcErrorCode
impl Debug for RpcErrorCode
Source§impl<'de> Deserialize<'de> for RpcErrorCode
impl<'de> Deserialize<'de> for RpcErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for RpcErrorCode
impl Display for RpcErrorCode
impl Eq for RpcErrorCode
Source§impl Error for RpcErrorCode
impl Error for RpcErrorCode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()