Exception: OutlineVpnApi::ResponseError
- Defined in:
- lib/outline_vpn_api/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, body, message = nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code, body, message = nil) ⇒ ResponseError
Returns a new instance of ResponseError.
13 14 15 16 17 |
# File 'lib/outline_vpn_api/errors.rb', line 13 def initialize(code, body, = nil) @code = code @body = body super( || "Outline API returned HTTP #{code}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
11 12 13 |
# File 'lib/outline_vpn_api/errors.rb', line 11 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/outline_vpn_api/errors.rb', line 11 def code @code end |