Exception: Bundesstrasse::ZMQError
- Inherits:
-
StandardError
- Object
- StandardError
- Bundesstrasse::ZMQError
- Defined in:
- lib/bundesstrasse/errors.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message, error_code = -1)) ⇒ ZMQError
constructor
A new instance of ZMQError.
Constructor Details
#initialize(message, error_code = -1)) ⇒ ZMQError
Returns a new instance of ZMQError.
4 5 6 7 |
# File 'lib/bundesstrasse/errors.rb', line 4 def initialize(, error_code=-1) @error_code = error_code super() end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
3 4 5 |
# File 'lib/bundesstrasse/errors.rb', line 3 def error_code @error_code end |
Class Method Details
.raise_error(e) ⇒ Object
9 10 11 |
# File 'lib/bundesstrasse/errors.rb', line 9 def self.raise_error(e) raise new(e., e.error_code) end |