Exception: ONEAccess::Error::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- ONEAccess::Error::APIError
- Defined in:
- lib/oneaccess/error/api_error.rb
Instance Attribute Summary collapse
-
#api_status_code ⇒ Object
readonly
Returns the value of attribute api_status_code.
-
#api_status_message ⇒ Object
readonly
Returns the value of attribute api_status_message.
-
#http_status_code ⇒ Object
readonly
Returns the value of attribute http_status_code.
Instance Method Summary collapse
-
#initialize(http_status_code, api_status_code, api_status_message) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(http_status_code, api_status_code, api_status_message) ⇒ APIError
Returns a new instance of APIError.
10 11 12 13 14 15 |
# File 'lib/oneaccess/error/api_error.rb', line 10 def initialize(http_status_code, api_status_code, ) @http_status_code = http_status_code @api_status_code = api_status_code = super() end |
Instance Attribute Details
#api_status_code ⇒ Object (readonly)
Returns the value of attribute api_status_code.
7 8 9 |
# File 'lib/oneaccess/error/api_error.rb', line 7 def api_status_code @api_status_code end |
#api_status_message ⇒ Object (readonly)
Returns the value of attribute api_status_message.
8 9 10 |
# File 'lib/oneaccess/error/api_error.rb', line 8 def end |
#http_status_code ⇒ Object (readonly)
Returns the value of attribute http_status_code.
6 7 8 |
# File 'lib/oneaccess/error/api_error.rb', line 6 def http_status_code @http_status_code end |