Exception: RabbitMQ::FFI::Error Private
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RabbitMQ::FFI::Error
- Defined in:
- lib/rabbitmq/ffi/error.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Attribute Summary collapse
- .lookup_table ⇒ Object readonly private
Class Method Summary collapse
- .lookup(status) ⇒ Object private
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ Error
constructor
private
A new instance of Error.
- #message ⇒ Object private
- #status_message ⇒ Object private
Constructor Details
#initialize(message = nil) ⇒ Error
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.
Returns a new instance of Error.
6 7 8 |
# File 'lib/rabbitmq/ffi/error.rb', line 6 def initialize(=nil) @message = end |
Class Attribute Details
.lookup_table ⇒ Object (readonly)
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.
24 25 26 |
# File 'lib/rabbitmq/ffi/error.rb', line 24 def lookup_table @lookup_table end |
Class Method Details
.lookup(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.
27 28 29 |
# File 'lib/rabbitmq/ffi/error.rb', line 27 def self.lookup status lookup_table.fetch(status) end |
Instance Method Details
#message ⇒ 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.
10 11 12 13 14 15 16 |
# File 'lib/rabbitmq/ffi/error.rb', line 10 def if @message && ; "#{} - #{@message}" elsif @message; @message elsif ; else; "" end end |
#status_message ⇒ 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 |
# File 'lib/rabbitmq/ffi/error.rb', line 18 def nil end |