enum Marisa::ErrorCode

Defined in:

lib_marisa.cr

Enum Members

OK = 0

Operation succeeded

STATE_ERROR = 1

Object not ready for requested operation

NULL_ERROR = 2

Invalid NULL pointer provided

BOUND_ERROR = 3

Attempt to access out of range address

RANGE_ERROR = 4

Out of range value in operation

CODE_ERROR = 5

Undefined code appeared in operation

RESET_ERROR = 6

Smart pointer tried to reset itself

SIZE_ERROR = 7

Size exceeded library limitation

MEMORY_ERROR = 8

Memory allocation failed

IO_ERROR = 9

I/O operation failed

FORMAT_ERROR = 10

Input was in invalid format

Instance Method Summary

Instance Method Detail

def bound_error? #

Returns true if this enum value equals BOUND_ERROR


def code_error? #

Returns true if this enum value equals CODE_ERROR


def format_error? #

Returns true if this enum value equals FORMAT_ERROR


def io_error? #

Returns true if this enum value equals IO_ERROR


def memory_error? #

Returns true if this enum value equals MEMORY_ERROR


def null_error? #

Returns true if this enum value equals NULL_ERROR


def ok? #

Returns true if this enum value equals OK


def range_error? #

Returns true if this enum value equals RANGE_ERROR


def reset_error? #

Returns true if this enum value equals RESET_ERROR


def size_error? #

Returns true if this enum value equals SIZE_ERROR


def state_error? #

Returns true if this enum value equals STATE_ERROR