Exception: Fathom::Error

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

Overview

Base error class for all Fathom errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, response: nil, http_status: nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
12
# File 'lib/fathom/errors.rb', line 8

def initialize(message = nil, response: nil, http_status: nil)
  @response = response
  @http_status = http_status
  super(message)
end

Instance Attribute Details

#http_statusObject (readonly)

Returns the value of attribute http_status.



6
7
8
# File 'lib/fathom/errors.rb', line 6

def http_status
  @http_status
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/fathom/errors.rb', line 6

def response
  @response
end