Exception: HookBridge::Error
- Inherits:
-
StandardError
- Object
- StandardError
- HookBridge::Error
- Defined in:
- lib/hookbridge/errors.rb
Overview
Base error class for all HookBridge errors
Direct Known Subclasses
AuthenticationError, IdempotencyError, NetworkError, NotFoundError, RateLimitError, ReplayLimitError, TimeoutError, ValidationError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, code: nil, request_id: nil, status_code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil, request_id: nil, status_code: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 13 |
# File 'lib/hookbridge/errors.rb', line 8 def initialize(, code: nil, request_id: nil, status_code: nil) @code = code @request_id = request_id @status_code = status_code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/hookbridge/errors.rb', line 6 def code @code end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
6 7 8 |
# File 'lib/hookbridge/errors.rb', line 6 def request_id @request_id end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
6 7 8 |
# File 'lib/hookbridge/errors.rb', line 6 def status_code @status_code end |