Exception: IONIS::Exception::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- IONIS::Exception::Exception
- Defined in:
- lib/ionisexceptions.rb
Direct Known Subclasses
BadAuthentication, ConnectionRefused, FileGrabber, HostNotFound
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(code, reason) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(code, reason) ⇒ Exception
Returns a new instance of Exception.
6 7 8 9 |
# File 'lib/ionisexceptions.rb', line 6 def initialize(code, reason) @code, @reason = code, reason super "#{reason} (#{code})" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code
4 5 6 |
# File 'lib/ionisexceptions.rb', line 4 def code @code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
4 5 6 |
# File 'lib/ionisexceptions.rb', line 4 def reason @reason end |