Crabbit::ResponseCode
Inherits Enum < Comparable < Value < Object
RabbitMQ Stream protocol response status.
Ok is the sole success value. Other values can be inspected on
BrokerError#code or converted to an exception with #raise_unless_ok!.
Constants
Ok = 1_u16
StreamDoesNotExist = 2_u16
SubscriptionIdAlreadyExists = 3_u16
SubscriptionIdDoesNotExist = 4_u16
StreamAlreadyExists = 5_u16
StreamNotAvailable = 6_u16
SaslMechanismNotSupported = 7_u16
AuthenticationFailure = 8_u16
SaslError = 9_u16
SaslChallenge = 10_u16
AuthenticationFailureLoopback = 11_u16
VirtualHostAccessFailure = 12_u16
UnknownFrame = 13_u16
FrameTooLarge = 14_u16
InternalError = 15_u16
AccessRefused = 16_u16
PreconditionFailed = 17_u16
PublisherDoesNotExist = 18_u16
NoOffset = 19_u16
SaslCannotChangeMechanism = 20_u16
SaslCannotChangeUsername = 21_u16
Instance methods
authentication_failure_loopback?
Returns true if this enum value equals AuthenticationFailureLoopback
Raises BrokerError unless this code is Ok.
Optional context is prepended to the generated error message.
sasl_cannot_change_mechanism?
Returns true if this enum value equals SaslCannotChangeMechanism
sasl_mechanism_not_supported?
Returns true if this enum value equals SaslMechanismNotSupported
subscription_id_already_exists?
Returns true if this enum value equals SubscriptionIdAlreadyExists
subscription_id_does_not_exist?
Returns true if this enum value equals SubscriptionIdDoesNotExist