Exception: BCDD::Result::Error::CallableAndThenDisabled

Inherits:
BCDD::Result::Error show all
Defined in:
lib/bcdd/result/error.rb

Instance Method Summary collapse

Methods inherited from BCDD::Result::Error

build

Constructor Details

#initialize(_message = nil) ⇒ CallableAndThenDisabled

Returns a new instance of CallableAndThenDisabled.



52
53
54
55
56
57
# File 'lib/bcdd/result/error.rb', line 52

def initialize(_message = nil)
  super(
    'You cannot use #and_then! as the feature is disabled. ' \
    'Please use BCDD::Result.config.feature.enable!(:and_then!) to enable it.'
  )
end