#[non_exhaustive]pub enum CoreError {
Validation(ValidationError),
MissingBaseUrl {
chain_id: u64,
env: CowEnv,
partner_api: bool,
},
Serialization(Redacted<String>),
TransportContract(Redacted<String>),
Cancelled,
}Expand description
Top-level core crate error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Validation(ValidationError)
Validation failed for a typed user input or configuration value.
MissingBaseUrl
The selected chain/environment pair did not resolve to a base URL.
Fields
Serialization(Redacted<String>)
A JSON or ABI-adjacent serialization step failed.
Retained as a redaction-conformance witness: it is constructed only by
the error-redaction and classification test suites to prove this arm’s
Debug redacts, and no production path emits it.
TransportContract(Redacted<String>)
A downstream transport implementation violated the core contract.
Retained as a redaction-conformance witness: it is constructed only by
the error-redaction and classification test suites to prove this arm’s
Debug redacts, and no production path emits it.
Cancelled
A long-running operation was cancelled through a cooperative cancellation token.
Implementations§
Source§impl CoreError
impl CoreError
Sourcepub const fn class(&self) -> ErrorClass
pub const fn class(&self) -> ErrorClass
Returns the coarse-grained ErrorClass for this error.
Trait Implementations§
impl Eq for CoreError
Source§impl Error for CoreError
impl Error for CoreError
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()
Source§impl From<ValidationError> for CoreError
impl From<ValidationError> for CoreError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
impl StructuralPartialEq for CoreError
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.