Path: blob/master/lib/rex/proto/amqp/error.rb
19500 views
module Rex::Proto::Amqp::Error1# Base class of AMQP-specific errors.2class AmqpError < Rex::RuntimeError3end45# Raised when trying to parse a frame that is invalid.6class InvalidFrameError < AmqpError7def initialize(msg='Invalid AMQP frame data was received and could not be parsed.')8super(msg)9end10end1112# Raised when an unexpected reply is received.13class UnexpectedReplyError < AmqpError14attr_reader :reply15def initialize(reply, msg='An unexpected AMQP reply was received.')16@reply = reply17super(msg)18end19end2021# Raised when the connection can not be negotiated for some reason.22class NegotiationError < AmqpError23def initialize(msg='AMQP Connection negotiation failed.')24super(msg)25end26end27end282930