Exception: ZMQ::ZeroMQError
- Inherits:
-
StandardError
- Object
- StandardError
- ZMQ::ZeroMQError
- Defined in:
- lib/ffi-rzmq/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#result_code ⇒ Object
readonly
Returns the value of attribute result_code.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, result_code, error_code, message) ⇒ ZeroMQError
constructor
A new instance of ZeroMQError.
Constructor Details
#initialize(source, result_code, error_code, message) ⇒ ZeroMQError
Returns a new instance of ZeroMQError.
7 8 9 10 11 12 13 |
# File 'lib/ffi-rzmq/exceptions.rb', line 7 def initialize source, result_code, error_code, @source = source @result_code = result_code @error_code = error_code @message = "msg [#{}], error code [#{error_code}], rc [#{result_code}]" super end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
5 6 7 |
# File 'lib/ffi-rzmq/exceptions.rb', line 5 def error_code @error_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/ffi-rzmq/exceptions.rb', line 5 def @message end |
#result_code ⇒ Object (readonly)
Returns the value of attribute result_code.
5 6 7 |
# File 'lib/ffi-rzmq/exceptions.rb', line 5 def result_code @result_code end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
5 6 7 |
# File 'lib/ffi-rzmq/exceptions.rb', line 5 def source @source end |