Package avail.error

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
object ErrorCodeRangeRegistry

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
class InvalidErrorCodeRange(val code: Int) : ErrorCodeRange
Link copied to clipboard
enum StandardErrorCode : Enum<StandardErrorCode> , ErrorCode

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

Link copied to clipboard
object StandardErrorCodeRange : ErrorCodeRange

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