pub enum ErpAdapterError {
Payload(String),
Transport(String),
Permanent(String),
}Expand description
Errors produced by ErpAdapter and ErpCommandSource implementations.
Variants§
Payload(String)
The ERP response payload could not be deserialised or is semantically invalid.
Transport(String)
A transient transport error (network timeout, HTTP 5xx, broker disconnect). The delivery worker will retry with exponential backoff.
Permanent(String)
A permanent, non-retryable error (e.g. invalid configuration, authentication failure). The delivery worker will dead-letter the message.
Implementations§
Source§impl ErpAdapterError
impl ErpAdapterError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Returns true for transient errors that warrant a retry.
Trait Implementations§
Source§impl Debug for ErpAdapterError
impl Debug for ErpAdapterError
Source§impl Display for ErpAdapterError
impl Display for ErpAdapterError
Source§impl Error for ErpAdapterError
impl Error for ErpAdapterError
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()
Auto Trait Implementations§
impl Freeze for ErpAdapterError
impl RefUnwindSafe for ErpAdapterError
impl Send for ErpAdapterError
impl Sync for ErpAdapterError
impl Unpin for ErpAdapterError
impl UnsafeUnpin for ErpAdapterError
impl UnwindSafe for ErpAdapterError
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