pub enum MqRestError {
Transport {
url: String,
source: Error,
},
Response {
message: String,
response_text: Option<String>,
},
Auth {
url: String,
status_code: Option<u16>,
message: String,
},
Command {
payload: HashMap<String, Value>,
status_code: Option<u16>,
message: String,
},
Timeout {
name: String,
operation: String,
elapsed: f64,
message: String,
},
InvalidConfig {
message: String,
},
Mapping(MappingError),
}Expand description
All error types for the MQ REST admin library.
Variants§
Transport
The transport failed to reach the MQ REST endpoint.
Fields
Response
The MQ REST response was malformed or unexpected.
Fields
Auth
Authentication with the MQ REST API failed.
Fields
Command
The MQ REST response indicates MQSC command failure.
Fields
Timeout
A synchronous operation exceeded its timeout.
Fields
InvalidConfig
Configuration is invalid.
Mapping(MappingError)
Attribute mapping failed.
Trait Implementations§
Source§impl Debug for MqRestError
impl Debug for MqRestError
Source§impl Display for MqRestError
impl Display for MqRestError
Source§impl Error for MqRestError
impl Error for MqRestError
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<MappingError> for MqRestError
impl From<MappingError> for MqRestError
Source§fn from(source: MappingError) -> Self
fn from(source: MappingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MqRestError
impl !RefUnwindSafe for MqRestError
impl Send for MqRestError
impl Sync for MqRestError
impl Unpin for MqRestError
impl UnsafeUnpin for MqRestError
impl !UnwindSafe for MqRestError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.