Exception: Browserbeam::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Browserbeam::Error
- Defined in:
- lib/browserbeam/errors.rb
Direct Known Subclasses
AuthenticationError, EngineUnavailableError, InvalidRequestError, QuotaExceededError, RateLimitError, SessionNotFoundError, StepExecutionError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#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: "", status_code: 0, context: {}, request_id: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: "", status_code: 0, context: {}, request_id: nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 11 |
# File 'lib/browserbeam/errors.rb', line 5 def initialize(, code: "", status_code: 0, context: {}, request_id: nil) super() @code = code @status_code = status_code @context = context || {} @request_id = request_id end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/browserbeam/errors.rb', line 3 def code @code end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/browserbeam/errors.rb', line 3 def context @context end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
3 4 5 |
# File 'lib/browserbeam/errors.rb', line 3 def request_id @request_id end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/browserbeam/errors.rb', line 3 def status_code @status_code end |