Crate ic_error_types

Source
Expand description

A crate that groups user-facing and internal error types and codes produced by the Internet Computer.

Structs§

ErrorCodeIter
An iterator over the variants of ErrorCode
RejectCodeIter
An iterator over the variants of RejectCode
UserError
The error that is sent back to users of IC if something goes wrong. It’s designed to be copyable and serializable so that we can persist it in ingress history.

Enums§

ErrorCode
User-facing error codes.
RejectCode
Reject codes are integers that canisters should pass to msg.reject system API calls. These errors are designed for programmatic error handling, not for end-users. They are also used for classification of user-facing errors.
TryFromError