pub enum TransactionError {
InvalidTransaction(String),
SigningError(String),
SerializationError(String),
FeeError(String),
Script(ScriptError),
Primitives(PrimitivesError),
}Expand description
Error types for transaction operations.
Variants§
InvalidTransaction(String)
The transaction structure is invalid (e.g. missing inputs or outputs).
SigningError(String)
An error occurred during input signing (e.g. missing source output).
SerializationError(String)
An error occurred during binary/hex serialization or deserialization.
FeeError(String)
Fee calculation failed (e.g. insufficient funds or invalid fee rate).
Script(ScriptError)
An underlying script error (forwarded from bsv-script).
Primitives(PrimitivesError)
An underlying primitives error (forwarded from bsv-primitives).
Trait Implementations§
Source§impl Debug for TransactionError
impl Debug for TransactionError
Source§impl Display for TransactionError
impl Display for TransactionError
Source§impl Error for TransactionError
impl Error for TransactionError
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<PrimitivesError> for TransactionError
impl From<PrimitivesError> for TransactionError
Source§fn from(source: PrimitivesError) -> Self
fn from(source: PrimitivesError) -> Self
Converts to this type from the input type.
Source§impl From<ScriptError> for TransactionError
impl From<ScriptError> for TransactionError
Source§fn from(source: ScriptError) -> Self
fn from(source: ScriptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionError
impl !RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl UnsafeUnpin for TransactionError
impl !UnwindSafe for TransactionError
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