MCPcopy Create free account
hub / github.com/btcsuite/btcd / Error

Method Error

txscript/error.go:534–536  ·  view source on GitHub ↗

Error satisfies the error interface and prints human-readable errors.

()

Source from the content-addressed store, hash-verified

532
533// Error satisfies the error interface and prints human-readable errors.
534func (e Error) Error() string {
535 return e.Description
536}
537
538// scriptError creates an Error given a set of arguments.
539func scriptError(c ErrorCode, desc string) Error {

Callers 7

TestErroredScriptFunction · 0.45
TestP2AScriptHexFunction · 0.45
TestScriptTemplateFunction · 0.45
TestSignTxOutputFunction · 0.45
TestErrorFunction · 0.45
mustParseShortFormFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestErroredScriptFunction · 0.36
TestP2AScriptHexFunction · 0.36
TestScriptTemplateFunction · 0.36
TestSignTxOutputFunction · 0.36
TestErrorFunction · 0.36
mustParseShortFormFunction · 0.36