Exception: EAAL::Exception::HTTPError

Inherits:
EAALError
  • Object
show all
Defined in:
lib/eaal/exception.rb

Overview

Used when an http error is encountered

Direct Known Subclasses

APINotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ HTTPError

Returns a new instance of HTTPError.



32
33
34
# File 'lib/eaal/exception.rb', line 32

def initialize(status)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



30
31
32
# File 'lib/eaal/exception.rb', line 30

def status
  @status
end