Enum celery::error::ProtocolError
source · pub enum ProtocolError {
MissingRequiredProperty(String),
MissingHeaders,
MissingRequiredHeader(String),
BodySerializationError(ContentTypeError),
InvalidProperty(String),
}
Expand description
Errors that can occur due to messages not conforming to the protocol.
Variants§
MissingRequiredProperty(String)
Raised when a required message property is missing.
MissingHeaders
Raised when the headers are missing altogether.
MissingRequiredHeader(String)
Raised when a required message header is missing.
BodySerializationError(ContentTypeError)
Raised when serializing or de-serializing a message body fails.
InvalidProperty(String)
Raised when field value is invalid.
Trait Implementations§
source§impl Debug for ProtocolError
impl Debug for ProtocolError
source§impl Display for ProtocolError
impl Display for ProtocolError
source§impl Error for ProtocolError
impl Error for ProtocolError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ContentTypeError> for ProtocolError
impl From<ContentTypeError> for ProtocolError
source§fn from(source: ContentTypeError) -> Self
fn from(source: ContentTypeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ProtocolError
impl From<Error> for ProtocolError
source§impl From<ProtocolError> for BeatError
impl From<ProtocolError> for BeatError
source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
source§impl From<ProtocolError> for BrokerError
impl From<ProtocolError> for BrokerError
source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
source§impl From<ProtocolError> for CeleryError
impl From<ProtocolError> for CeleryError
source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.