# Functions
As attempts to assign the error pointed to by target with the first error in err's error chain with a compatible type.
Cause returns the most deeply-nested error from an error chain.
E creates an *Error from one or more arguments.
Errorf creates a simple error from a format string and arguments.
Is returns whether err equals or wraps target.
New creates a simple error from a string.
Opf returns a formatted Op.
Stacks extracts all stacktraces from err, sorted from top-most to bottom-most error.
WithStack is identical to E but includes a stacktrace with the error.
# Constants
Error is known to be a result of our bug.
Consensus violation.
Encryption or decryption error.
Inactive consensus deployment.
Transaction is a double spend.
Invalid encoding.
Item already exists.
Insufficient balance to create transaction (perhaps due to UTXO selection requirements).
Invalid operation.
I/O error.
Wallet is locked.
Hdfchain network is unreachable due to lack of peers or hdfd RPC connections.
Item does not exist.
Unclassified error -- does not appear in error strings.
Invalid passphrase.
Permission denied.
Transaction rejected by wallet policy.
Protocol violation.
Transaction scripts do not execute (usually due to missing sigs).
Invalid seed.
Missing private keys.
# Variables
Separator is inserted between nested errors when formatting as strings.