Exception: Solid::Result::Error::CallableAndThenDisabled
- Inherits:
-
Solid::Result::Error
- Object
- StandardError
- Solid::Result::Error
- Solid::Result::Error::CallableAndThenDisabled
- Defined in:
- lib/solid/result/error.rb
Instance Method Summary collapse
-
#initialize(_message = nil) ⇒ CallableAndThenDisabled
constructor
A new instance of CallableAndThenDisabled.
Methods inherited from Solid::Result::Error
Constructor Details
#initialize(_message = nil) ⇒ CallableAndThenDisabled
Returns a new instance of CallableAndThenDisabled.
52 53 54 55 56 57 |
# File 'lib/solid/result/error.rb', line 52 def initialize( = nil) super( 'You cannot use #and_then! as the feature is disabled. ' \ 'Please use Solid::Result.config.feature.enable!(:and_then!) to enable it.' ) end |