Exception: Rockbox::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Rockbox::Error
- Defined in:
- lib/rockbox/errors.rb
Overview
Base class for every error raised by the SDK.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(message, cause: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, cause: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/rockbox/errors.rb', line 8 def initialize(, cause: nil) super() @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
6 7 8 |
# File 'lib/rockbox/errors.rb', line 6 def cause @cause end |