package
1.0.4
Repository: https://github.com/iov-one/weave.git
Documentation: pkg.go.dev

# Functions

ABCIError will resolve an error code/log from an abci result into an error message.
ABCIInfo returns the ABCI error information as consumed by the tendermint client.
Append clubs together all provided errors.
AppendField is a shortcut function to club together error(s) with a given field error.
Field returns an error instance that wraps the original error with additional information.
FieldErrors returns the list of all errors that are created for the given field name.
Recover captures a panic and stop its propagation.
Redact replace all errors that do not initialize with a weave error with a generic internal error instance.
Register returns an error instance that should be used as the base for creating error instances during runtime.
WithType is a helper to augment an error with a corresponding type message.
Wrap extends given error with an additional information.
Wrapf extends given error with an additional information.

# Constants

SuccessABCICode declares an ABCI response use 0 to signal that the processing was successful and no error is returned.

# Variables

ErrAmount is returned when processed amount is invalid.
ErrChain is returned when an operation cannot be completed because it cannot be executed on the current chain.
ErrCurrency is returned whenever an operation cannot be completed due to a currency issues.
ErrDatabase is returned whenever the underlying kvstore fails to process raw bytes (get/set/delete/write).
ErrDeleted is returned whenever a deleted object version is accessed.
ErrDuplicate is returned when there is a record already that has the same unique key/index used.
ErrEmpty is returned when a value fails a not empty assertion.
ErrExpired stands for expired entities, normally has to do with block height expirations.
ErrHuman is returned when application reaches a code path which should not ever be reached if the code was written as expected by the framework.
ErrImmutable is returned when something that is considered immutable gets modified.
ErrInput stands for general input problems indication.
ErrIteratorDone is returned when an iterator hits the end of the data source.
ErrMetadata is returned whenever a weave.Metadata payload is invalid.
ErrModel is returned whenever a message is invalid and cannot be used (ie.
ErrMsg is returned whenever an event is invalid and cannot be handled.
ErrNetwork is returned on network failure (only for client libraries).
ErrNotFound is used when a requested operation cannot be completed due to missing data.
ErrOverflow s returned when a computation cannot be completed because the result value exceeds the type.
ErrPanic is only set when we recover from a panic, so we know to redact potentially sensitive system info.
ErrSchema is returned whenever an operation cannot be completed due to an object schema version issue.
ErrState is returned when an object is in invalid state.
ErrTimeout is returned on context timeout (only for client libraries).
ErrType is returned whenever the type is not what was expected.
ErrUnauthorized is used whenever a request without sufficient authorization is handled.

# Structs

Error represents a root error.