Method: RabbitMQ::Util.null_check

Defined in:
lib/rabbitmq/util.rb

.null_check(action, obj) ⇒ 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.



18
19
20
21
# File 'lib/rabbitmq/util.rb', line 18

def null_check(action, obj)
  return unless obj.nil?
  raise RabbitMQ::FFI::Error, "while #{action} - got unexpected null"
end