Exception: AxHub::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AxHub::Error
- Defined in:
- lib/axhub_sdk.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(category:, code:, message: nil, status: 0, retryable: false, request_id: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(category:, code:, message: nil, status: 0, retryable: false, request_id: nil) ⇒ Error
Returns a new instance of Error.
14 15 16 |
# File 'lib/axhub_sdk.rb', line 14 def initialize(category:, code:, message: nil, status: 0, retryable: false, request_id: nil) super( || code); @category = category; @code = code; @status = status; @retryable = retryable; @request_id = request_id end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
13 14 15 |
# File 'lib/axhub_sdk.rb', line 13 def category @category end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
13 14 15 |
# File 'lib/axhub_sdk.rb', line 13 def code @code end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
13 14 15 |
# File 'lib/axhub_sdk.rb', line 13 def request_id @request_id end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
13 14 15 |
# File 'lib/axhub_sdk.rb', line 13 def retryable @retryable end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
13 14 15 |
# File 'lib/axhub_sdk.rb', line 13 def status @status end |