Exception: Qubell::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Qubell::BaseError
- Defined in:
- lib/qubell/errors.rb
Overview
Base exception for Qubell module
Direct Known Subclasses
AuthenticationError, ExecutionError, PermissionsDeniedError, ResourceUnavaliable, WorkflowError
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code, msg = 'unknown status code') ⇒ BaseError
constructor
A new instance of BaseError.
Constructor Details
#initialize(error_code, msg = 'unknown status code') ⇒ BaseError
Returns a new instance of BaseError.
8 9 10 11 |
# File 'lib/qubell/errors.rb', line 8 def initialize(error_code, msg = 'unknown status code') super msg @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
6 7 8 |
# File 'lib/qubell/errors.rb', line 6 def error_code @error_code end |