Sha256: 721ecac5858d362767a46e10ca36562848beadfc1a945f3ad23a22c59a0610c5

Contents?: true

Size: 919 Bytes

Versions: 15

Compression:

Stored size: 919 Bytes

Contents

class Thor
  # Thor::Error is raised when it's caused by wrong usage of thor classes. Those
  # errors have their backtrace suppressed and are nicely shown to the user.
  #
  # Errors that are caused by the developer, like declaring a method which
  # overwrites a thor keyword, it SHOULD NOT raise a Thor::Error. This way, we
  # ensure that developer errors are shown with full backtrace.
  class Error < StandardError
  end

  # Raised when a command was not found.
  class UndefinedCommandError < Error
  end
  UndefinedTaskError = UndefinedCommandError

  class AmbiguousCommandError < Error
  end
  AmbiguousTaskError = AmbiguousCommandError

  # Raised when a command was found, but not invoked properly.
  class InvocationError < Error
  end

  class UnknownArgumentError < Error
  end

  class RequiredArgumentMissingError < InvocationError
  end

  class MalformattedArgumentError < InvocationError
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
acquia_toolbelt-2.4.1 lib/vendor/thor/lib/thor/error.rb
acquia_toolbelt-2.4.0 lib/vendor/thor/lib/thor/error.rb
acquia_toolbelt-2.3.2 lib/vendor/thor/lib/thor/error.rb
acquia_toolbelt-2.3.1 lib/vendor/thor/lib/thor/error.rb
bundler-1.5.1 lib/bundler/vendor/thor/error.rb
bundler-1.5.0 lib/bundler/vendor/thor/error.rb
bundler-1.5.0.rc.2 lib/bundler/vendor/thor/error.rb
bundler-1.5.0.rc.1 lib/bundler/vendor/thor/error.rb
acquia_toolbelt-2.0.1 lib/vendor/thor/lib/thor/error.rb
acquia_toolbelt-2.0.0 lib/vendor/thor/lib/thor/error.rb
thor_dleavitt-0.18.1 lib/thor/error.rb
thor-dleavitt-0.18.1 lib/thor/error.rb
bundler-1.4.0.rc.1 lib/bundler/vendor/thor/error.rb
bundler-1.4.0.pre.2 lib/bundler/vendor/thor/error.rb
bundler-1.4.0.pre.1 lib/bundler/vendor/thor/error.rb