ErrorCodeRange

interface ErrorCodeRange

An ErrorCodeRange represents a range of related ErrorCodes.

Author

Richard Arriaga

Inheritors

Properties

Link copied to clipboard
open val maxCode: Int

The maximum allowed value for an ErrorCode in this ErrorCodeRange.

Link copied to clipboard
open val minCode: Int

The minimum allowed value for an ErrorCode in this ErrorCodeRange.

Link copied to clipboard
abstract val name: String

The name of this ErrorCodeRange.

Link copied to clipboard
abstract val range: IntRange

The IntRange that represents the valid range of ErrorCodes.

Functions

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

Answer the ErrorCode for the given ErrorCode.code.