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.

Author

Richard Arriaga

Functions

Link copied to clipboard
fun errorCode(code: Int): ErrorCode

Answer the ErrorCode for the given ErrorCode.code.

Link copied to clipboard
fun register(errorCodeRange: ErrorCodeRange)

Register the provided ErrorCodeRange.