Exception: MusicUtils::StdError
- Inherits:
-
StandardError
- Object
- StandardError
- MusicUtils::StdError
- Extended by:
- Error
- Defined in:
- lib/music-utils/errors/std_error.rb
Overview
Prevents the user of the library from rescuing the global ‘StandardError`.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(msg, original = $!) ⇒ StdError
constructor
Create the error with a message and an original that defaults to the exception that is currently active, in this thread, if one exists.
Constructor Details
#initialize(msg, original = $!) ⇒ StdError
Create the error with a message and an original that defaults to the exception that is currently active, in this thread, if one exists
11 12 13 14 |
# File 'lib/music-utils/errors/std_error.rb', line 11 def initialize(msg, original=$!) super(msg) @original = original; end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
7 8 9 |
# File 'lib/music-utils/errors/std_error.rb', line 7 def original @original end |