Module: KubeMQ::ErrorCode

Defined in:
lib/kubemq/error_codes.rb

Overview

Enumeration of SDK error codes used in KubeMQ::Error#code.

Each code maps to an ErrorCategory and retryable flag via ERROR_CLASSIFICATION, and to an actionable suggestion via ERROR_SUGGESTIONS.

Constant Summary collapse

CONNECTION_TIMEOUT =

gRPC connection timed out or deadline exceeded.

'CONNECTION_TIMEOUT'
UNAVAILABLE =

Broker is unreachable — network, DNS, or firewall issue.

'UNAVAILABLE'
CONNECTION_NOT_READY =

Transport exists but is not in the READY state.

'CONNECTION_NOT_READY'
AUTH_FAILED =

Authentication token is invalid, expired, or missing.

'AUTH_FAILED'
PERMISSION_DENIED =

Authenticated but lacking required permissions.

'PERMISSION_DENIED'
VALIDATION_ERROR =

Request parameters failed validation.

'VALIDATION_ERROR'
ALREADY_EXISTS =

Resource (channel, queue) already exists.

'ALREADY_EXISTS'
OUT_OF_RANGE =

Sequence number or offset is out of valid range.

'OUT_OF_RANGE'
NOT_FOUND =

Requested channel or resource does not exist.

'NOT_FOUND'
RESOURCE_EXHAUSTED =

Broker rate limit or resource quota exceeded.

'RESOURCE_EXHAUSTED'
ABORTED =

Operation aborted due to a conflict (e.g., transaction contention).

'ABORTED'
INTERNAL =

Internal broker error — check server logs.

'INTERNAL'
UNKNOWN =

Unknown error — check server logs.

'UNKNOWN'
UNIMPLEMENTED =

Operation not supported by the broker version.

'UNIMPLEMENTED'
DATA_LOSS =

Unrecoverable data loss at the broker.

'DATA_LOSS'
CANCELLED =

Operation was cooperatively cancelled via CancellationToken.

'CANCELLED'
BUFFER_FULL =

Reconnect message buffer is full; oldest messages dropped.

'BUFFER_FULL'
STREAM_BROKEN =

A bidirectional gRPC stream broke unexpectedly.

'STREAM_BROKEN'
CLIENT_CLOSED =

Client has been closed; create a new instance.

'CLIENT_CLOSED'
CONFIGURATION_ERROR =

Invalid client configuration (address, TLS, etc.).

'CONFIGURATION_ERROR'
CALLBACK_ERROR =

A user-provided callback raised an exception.

'CALLBACK_ERROR'