pub enum MessageProcessingError {
UnknownType(String),
NoType,
MissingAttribute(String),
UnexpectedPayload(String),
UnexpectedMessage(String),
InvalidPayload(String),
InvalidPayloadDetail(String, String),
ParseError(String),
InvalidTag(String),
}Expand description
Errors raised during message processing.
Variants§
UnknownType(String)
An unknown message type was encountered. Message text mirrors upstream “Unknown message type %s”.
NoType
A message with no (or an empty) “type” attribute was encountered. Message text mirrors upstream “Unknown message with no type”.
MissingAttribute(String)
A required attribute is missing from a message.
UnexpectedPayload(String)
An unexpected payload was found on a message that doesn’t support one.
UnexpectedMessage(String)
A message was received in a state where it is not expected. Message text mirrors upstream “unexpected message: %s”.
InvalidPayload(String)
The message payload is invalid or corrupted.
InvalidPayloadDetail(String, String)
The message payload is invalid or corrupted; carries the underlying cause like upstream’s “Message %s has an invalid payload (%s)” (commit fee03a3 — the cause is included since Python 3.14/reporting).
ParseError(String)
XML parse error.
InvalidTag(String)
Invalid starting XML tag.
Trait Implementations§
Source§impl Debug for MessageProcessingError
impl Debug for MessageProcessingError
Source§impl Display for MessageProcessingError
impl Display for MessageProcessingError
Source§impl Error for MessageProcessingError
impl Error for MessageProcessingError
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()