class Thor::UndefinedTaskError

Raised when a command was not found.

Attributes

Public Class Methods

Calls superclass method
# File lib/thor/error.rb, line 43
def initialize(command, all_commands, namespace)
  @command = command
  @all_commands = all_commands

  message = "Could not find command #{command.inspect}"
  message = namespace ? "#{message} in #{namespace.inspect} namespace." : "#{message}."

  super(message)
end