Exception: GreenhouseIo::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GreenhouseIo::Error
- Defined in:
- lib/greenhouse_io/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/greenhouse_io/error.rb', line 5 def initialize(, code = nil) super @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/greenhouse_io/error.rb', line 3 def code @code end |