pub enum TxGateError {
Parse(ParseError),
PolicyDenied {
rule: String,
reason: String,
},
Sign(SignError),
Store(StoreError),
Config(ConfigError),
Policy(PolicyError),
}Expand description
Top-level error type for the TxGate signing service.
This enum wraps all domain-specific error types and provides
automatic conversion via the #[from] attribute.
Variants§
Parse(ParseError)
Transaction parsing failed.
PolicyDenied
Policy denied the transaction.
Fields
Sign(SignError)
Signing operation failed.
Store(StoreError)
Key storage operation failed.
Config(ConfigError)
Configuration error.
Policy(PolicyError)
Policy evaluation error (not denial, but evaluation failure).
Implementations§
Source§impl TxGateError
impl TxGateError
Trait Implementations§
Source§impl Debug for TxGateError
impl Debug for TxGateError
Source§impl Display for TxGateError
impl Display for TxGateError
Source§impl Error for TxGateError
impl Error for TxGateError
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<&TxGateError> for RpcErrorCode
impl From<&TxGateError> for RpcErrorCode
Source§fn from(error: &TxGateError) -> Self
fn from(error: &TxGateError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for TxGateError
impl From<ConfigError> for TxGateError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for TxGateError
impl From<ParseError> for TxGateError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for TxGateError
impl From<PolicyError> for TxGateError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<SignError> for TxGateError
impl From<SignError> for TxGateError
Source§impl From<StoreError> for TxGateError
impl From<StoreError> for TxGateError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<TxGateError> for RpcErrorCode
impl From<TxGateError> for RpcErrorCode
Source§fn from(error: TxGateError) -> Self
fn from(error: TxGateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TxGateError
impl !RefUnwindSafe for TxGateError
impl Send for TxGateError
impl Sync for TxGateError
impl Unpin for TxGateError
impl !UnwindSafe for TxGateError
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