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:
ParseError- Transaction parsing failuresSignError- Signing operation failuresStoreError- Key storage failuresPolicyError- Policy evaluation failuresConfigError- Configuration failuresTxGateError- Top-level error that wraps all error types
§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§
- Config
Error - Errors that can occur during configuration loading.
- Parse
Error - Errors that can occur during transaction parsing.
- Policy
Error - Errors that can occur during policy evaluation.
- RpcError
Code - JSON-RPC 2.0 error codes.
- Sign
Error - Errors that can occur during signing operations.
- Store
Error - Errors that can occur during key storage operations.
- TxGate
Error - Top-level error type for the
TxGatesigning service.
Type Aliases§
- Config
Result - A
Resulttype alias for configuration operations. - Parse
Result - A
Resulttype alias for parsing operations. - Policy
Result - A
Resulttype alias for policy operations. - Result
- A
Resulttype alias usingTxGateErroras the error type. - Sign
Result - A
Resulttype alias for signing operations. - Store
Result - A
Resulttype alias for storage operations.