# class UndefinedTaskError

Raised when a command was not found.

### Attributes

all_commands[R]
command[R]

### Public Class Methods

new(command, all_commands, namespace) click to toggle source
Calls superclass method `Exception::new`

    # File lib/bundler/vendor/thor/lib/thor/error.rb, line 46
    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