Exception: Spacebunny::AckTypeError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/spacebunny/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ AckTypeError

Returns a new instance of AckTypeError.



10
11
12
13
# File 'lib/spacebunny/exceptions.rb', line 10

def initialize(message = nil)
  message = message || "Ack type not valid. Use one of #{Spacebunny::AmqpClient::ACK_TYPES.map{ |t| ":#{t}" }.join(', ')}"
  super(message)
end