Exception: Lessonly::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Lessonly::Exception
- Defined in:
- lib/lessonly/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(message, attrs = {}) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(message, attrs = {}) ⇒ Exception
Returns a new instance of Exception.
5 6 7 8 |
# File 'lib/lessonly/exceptions.rb', line 5 def initialize(, attrs = {}) self.cause = attrs[:cause] super() end |
Instance Attribute Details
#cause ⇒ Object
Returns the value of attribute cause.
3 4 5 |
# File 'lib/lessonly/exceptions.rb', line 3 def cause @cause end |