Exception: XposedOrNot::APIError
- Inherits:
-
XposedOrNotError
- Object
- StandardError
- XposedOrNotError
- XposedOrNot::APIError
- Defined in:
- lib/xposedornot/errors.rb
Overview
Raised when the API returns an unexpected error response.
Instance Attribute Summary collapse
-
#status ⇒ Integer?
readonly
The HTTP status code.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message = nil, status: nil) ⇒ APIError
Returns a new instance of APIError.
29 30 31 32 |
# File 'lib/xposedornot/errors.rb', line 29 def initialize( = nil, status: nil) @status = status super() end |
Instance Attribute Details
#status ⇒ Integer? (readonly)
Returns the HTTP status code.
25 26 27 |
# File 'lib/xposedornot/errors.rb', line 25 def status @status end |