Exception: AdpClient::Error

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

Direct Known Subclasses

BadRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, data = nil) ⇒ Error

Returns a new instance of Error.



53
54
55
56
57
# File 'lib/adp_client.rb', line 53

def initialize(message, data = nil)
  @data = data

  super(message)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



51
52
53
# File 'lib/adp_client.rb', line 51

def data
  @data
end