123456789_123456789_123456789_123456789_123456789_

Exception: Bundler::Thor::UndefinedCommandError

Relationships & Source Files
Namespace Children
Classes:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error, StandardError
Instance Chain:
self, Bundler::Thor::UndefinedCommandError.if defined?(DidYouMeanif defined?(DidYouMean::SpellChecker) && defined?(DidYouMeanif defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # In order to support versions of Ruby that don't have keyword # arguments, we need our own spell checker class that doesn't take key # words. Even though this code wouldn't be hit because of the check # above, it's still necessary because the interpreter would otherwise be # unable to parse the file. class NoKwargSpellChecker < DidYouMean::SpellChecker # :nodoc: def initialize(dictionary) @dictionary = dictionary end end DidYouMean::Correctable end, Bundler::Thor::UndefinedCommandError.if defined?(DidYouMeanif defined?(DidYouMean::SpellChecker) && defined?(DidYouMeanif defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # In order to support versions of Ruby that don't have keyword # arguments, we need our own spell checker class that doesn't take key # words. Even though this code wouldn't be hit because of the check # above, it's still necessary because the interpreter would otherwise be # unable to parse the file. class NoKwargSpellChecker < DidYouMean::SpellChecker # :nodoc: def initialize(dictionary) @dictionary = dictionary end end DidYouMean::Correctable end, Error, StandardError
Inherits: Bundler::Thor::Error
Defined in: lib/bundler/vendor/thor/lib/thor/error.rb

Overview

Raised when a command was not found.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(command, all_commands, namespace) ⇒ UndefinedCommandError

[ GitHub ]

  
# 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

Instance Attribute Details

#all_commands (readonly)

[ GitHub ]

  
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 44

attr_reader :command, :all_commands

#command (readonly)

[ GitHub ]

  
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 44

attr_reader :command, :all_commands