Exception: EOAT::Exception::HTTPError

Inherits:
EOATError
  • Object
show all
Defined in:
lib/eoat/exception.rb

Overview

It is used when the HTTP response code different from 200, 404 or 0.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, headers) ⇒ HTTPError



16
17
18
19
# File 'lib/eoat/exception.rb', line 16

def initialize(status, headers)
  @status = status
  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



12
13
14
# File 'lib/eoat/exception.rb', line 12

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



12
13
14
# File 'lib/eoat/exception.rb', line 12

def status
  @status
end