Exception: Dry::Effects::Errors::UnhandledEffectError Private
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Dry::Effects::Errors::UnhandledEffectError
- Includes:
- Error
- Defined in:
- lib/dry/effects/errors.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
No handler in the stack
Direct Known Subclasses
Instance Attribute Summary collapse
- #effect ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(effect, message = Undefined) ⇒ UnhandledEffectError
constructor
private
A new instance of UnhandledEffectError.
Constructor Details
#initialize(effect, message = Undefined) ⇒ UnhandledEffectError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of UnhandledEffectError.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/dry/effects/errors.rb', line 17 def initialize(effect, = Undefined) @effect = effect super( Undefined.default() { "Effect #{effect.inspect} not handled. " \ "Effects must be wrapped with corresponding handlers" } ) end |
Instance Attribute Details
#effect ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/dry/effects/errors.rb', line 15 def effect @effect end |