Package-level declarations

Types

Link copied to clipboard
interface ErrorCode

ErrorCode is used to provide a code that describes an error condition. This enables notification to a client of Avail of an error that has occurred.

Link copied to clipboard
interface ErrorCodeRange

An ErrorCodeRange represents a range of related ErrorCodes.

Link copied to clipboard

An ErrorCodeRangeRegistry is the source for all known ErrorCodeRanges that Avail is aware of. Modules (e.g. avail-server) can register ErrorCodeRanges with the ErrorCodeRangeRegistry.

Link copied to clipboard
class InvalidErrorCode(val code: Int, val errorCodeRange: ErrorCodeRange) : ErrorCode

InvalidErrorCode represents a purported ErrorCode for a given ErrorCodeRange this is not a valid ErrorCode for that range.

Link copied to clipboard
Link copied to clipboard

StandardErrorCode is an enumeration of ErrorCode that represent standard failures that can occur while running Avail.

Link copied to clipboard

StandardErrorCodeRange is an ErrorCodeRange that specifies standard errors that can occur during the regular function of Avail.