Exception: Solid::Result::Error::CallableAndThenDisabled

Inherits:
Solid::Result::Error show all
Defined in:
lib/solid/result/error.rb

Instance Method Summary collapse

Methods inherited from Solid::Result::Error

build

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(_message = 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