Exception: EZApi::EZApiError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, body: nil, code: nil) ⇒ EZApiError

Returns a new instance of EZApiError.



4
5
6
7
8
# File 'lib/ezapi/errors.rb', line 4

def initialize(message = nil, body: nil, code: nil )
  @body = body
  @code = code
  super(message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/ezapi/errors.rb', line 3

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/ezapi/errors.rb', line 3

def code
  @code
end