Skip to main content

Module error

Module error 

Source
Expand description

Error types for the TxGate signing service.

This module provides comprehensive error types for all failure modes in the TxGate system, organized by domain:

§Example

use txgate_core::error::{ParseError, TxGateError};

fn parse_transaction(data: &[u8]) -> Result<(), TxGateError> {
    if data.is_empty() {
        return Err(ParseError::MalformedTransaction {
            context: "empty transaction data".to_string(),
        }.into());
    }
    Ok(())
}

Enums§

ConfigError
Errors that can occur during configuration loading.
ParseError
Errors that can occur during transaction parsing.
PolicyError
Errors that can occur during policy evaluation.
RpcErrorCode
JSON-RPC 2.0 error codes.
SignError
Errors that can occur during signing operations.
StoreError
Errors that can occur during key storage operations.
TxGateError
Top-level error type for the TxGate signing service.

Type Aliases§

ConfigResult
A Result type alias for configuration operations.
ParseResult
A Result type alias for parsing operations.
PolicyResult
A Result type alias for policy operations.
Result
A Result type alias using TxGateError as the error type.
SignResult
A Result type alias for signing operations.
StoreResult
A Result type alias for storage operations.