Sha256: 7b71da95ff0f10b396da8f62ff22624b6dc4ff5a972515030918d766accea7c2

Contents?: true

Size: 963 Bytes

Versions: 9

Compression:

Stored size: 963 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

  # 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

  # Raised when a user tries to call a private method encoded in templated filename.
  class PrivateMethodEncodedError < Error
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
github_cli-0.5.9 lib/github_cli/vendor/thor/error.rb
github_cli-0.5.8 lib/github_cli/vendor/thor/error.rb
github_cli-0.5.7 lib/github_cli/vendor/thor/error.rb
github_cli-0.5.6 lib/github_cli/vendor/thor/error.rb
github_cli-0.5.5 lib/github_cli/vendor/thor/error.rb
thor-0.18.0 lib/thor/error.rb
github_cli-0.5.4 lib/github_cli/vendor/thor/error.rb
thor-exclude_pattern-0.18.1 lib/thor/error.rb
thor-exclude_pattern-0.18.0 lib/thor/error.rb