Exception: Slayer::CommandNotImplementedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/slayer/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ CommandNotImplementedError

Returns a new instance of CommandNotImplementedError.



12
13
14
15
16
# File 'lib/slayer/errors.rb', line 12

def initialize(message = nil)
  message ||= 'Command implementation must call `fail!` or `pass!`, or '\
              'return a <Slayer::Result> object'
  super message
end