Exception: AMQ::Client::UnknownExchangeTypeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/amq/client/exceptions.rb

Constant Summary collapse

BUILTIN_TYPES =
[:fanout, :direct, :topic, :headers].freeze

Instance Method Summary collapse

Constructor Details

#initialize(types, given) ⇒ UnknownExchangeTypeError

Returns a new instance of UnknownExchangeTypeError.



99
100
101
# File 'lib/amq/client/exceptions.rb', line 99

def initialize(types, given)
  super("#{given.inspect} exchange type is unknown. Standard types are #{BUILTIN_TYPES.inspect}, custom exchange types must begin with x-, for example: x-recent-history")
end