W3cubDocs

/Ruby 2.7

class UndefinedTaskError

Parent:
Error

Raised when a command was not found.

Attributes

all_commands[R]
command[R]

Public Class Methods

new(command, all_commands, namespace) Show source
# 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
Calls superclass method Exception::new

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.