Exception: Aireview::JevError

Inherits:
Error
  • Object
show all
Defined in:
lib/aireview/errors.rb

Overview

A Jev request failed: network, HTTP status, an answer of the wrong shape. status is the HTTP status when the server answered.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil) ⇒ JevError

Returns a new instance of JevError.



23
24
25
26
# File 'lib/aireview/errors.rb', line 23

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

Instance Attribute Details

#status ⇒ Object (readonly)

Returns the value of attribute status.



21
22
23
# File 'lib/aireview/errors.rb', line 21

def status
  @status
end