#[non_exhaustive]pub enum CamelError {
Show 15 variants
ComponentNotFound(String),
EndpointCreationFailed(String),
ProcessorError(String),
TypeConversionFailed(String),
InvalidUri(String),
ChannelClosed,
RouteError(String),
Io(String),
DeadLetterChannelFailed(String),
CircuitOpen(String),
HttpOperationFailed {
method: String,
url: String,
status_code: u16,
status_text: String,
response_body: Option<String>,
},
Stopped,
Config(String),
AlreadyConsumed,
StreamLimitExceeded(usize),
}Expand description
Core error type for the Camel framework.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ComponentNotFound(String)
EndpointCreationFailed(String)
ProcessorError(String)
TypeConversionFailed(String)
InvalidUri(String)
ChannelClosed
RouteError(String)
Io(String)
DeadLetterChannelFailed(String)
CircuitOpen(String)
HttpOperationFailed
Fields
Stopped
Config(String)
AlreadyConsumed
StreamLimitExceeded(usize)
Trait Implementations§
Source§impl Clone for CamelError
impl Clone for CamelError
Source§fn clone(&self) -> CamelError
fn clone(&self) -> CamelError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CamelError
impl Debug for CamelError
Source§impl Display for CamelError
impl Display for CamelError
Source§impl Error for CamelError
impl Error for CamelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for CamelError
impl From<Error> for CamelError
Source§fn from(err: Error) -> CamelError
fn from(err: Error) -> CamelError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CamelError
impl RefUnwindSafe for CamelError
impl Send for CamelError
impl Sync for CamelError
impl Unpin for CamelError
impl UnsafeUnpin for CamelError
impl UnwindSafe for CamelError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more