Method: RabbitMQ::Util.error_check

Defined in:
lib/rabbitmq/util.rb

.error_check(action, status) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:



13
14
15
16
# File 'lib/rabbitmq/util.rb', line 13

def error_check(action, status)
  return if status == :ok
  raise RabbitMQ::FFI::Error.lookup(status), "while #{action}"
end