Exception: GreenhouseIo::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/greenhouse_io/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, code = nil)
  super message
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/greenhouse_io/error.rb', line 3

def code
  @code
end