Class BSV::Transaction::VerificationError ¶
Inherits: StandardError
Error raised during SPV verification.
Carries a machine-readable code alongside a human-readable message, matching the typed error pattern used by the Go SDK (ErrInvalidMerklePath, ErrFeeTooLow, ErrScriptVerificationFailed).
Error Codes¶
:invalid_merkle_proof— merkle path verification failed against the chain tracker:insufficient_fee— transaction fee is below the fee model's requirement:output_overflow— total outputs exceed total inputs:script_failure— script interpreter rejected an input (originalScriptErrorin#cause):missing_source— required input data (unlocking script, source locking script, or source satoshis) is absent
Constants¶
INSUFFICIENT_FEE ¶
Not documented.
INVALID_MERKLE_PROOF ¶
Not documented.
MISSING_SOURCE ¶
Not documented.
OUTPUT_OVERFLOW ¶
Not documented.
SCRIPT_FAILURE ¶
Not documented.
Attributes¶
code [R] ¶
- @return [Symbol] the error code
Public Instance Methods¶
initialize(code, message) ¶
- @param
code[Symbol] error code - @param
message[String] human-readable description - @return [VerificationError] a new instance of VerificationError