diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-23 14:30:49 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-23 14:30:49 +0200 |
commit | edd07b5a7a37783f398a156b2eb99b5b2733a0ae (patch) | |
tree | c3726e647c406d43a10109c1bb584aecdb88c2d9 /railties/lib/vendor/thor-0.11.3/lib/thor/error.rb | |
parent | 178044dbd2bd3ed44148e9b6d6584669aa4b2f93 (diff) | |
download | rails-edd07b5a7a37783f398a156b2eb99b5b2733a0ae.tar.gz rails-edd07b5a7a37783f398a156b2eb99b5b2733a0ae.tar.bz2 rails-edd07b5a7a37783f398a156b2eb99b5b2733a0ae.zip |
Updated vendored thor to 0.11.3.
Diffstat (limited to 'railties/lib/vendor/thor-0.11.3/lib/thor/error.rb')
-rw-r--r-- | railties/lib/vendor/thor-0.11.3/lib/thor/error.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/railties/lib/vendor/thor-0.11.3/lib/thor/error.rb b/railties/lib/vendor/thor-0.11.3/lib/thor/error.rb new file mode 100644 index 0000000000..c846e9ce74 --- /dev/null +++ b/railties/lib/vendor/thor-0.11.3/lib/thor/error.rb @@ -0,0 +1,27 @@ +class Thor + # Thor::Error is raised when it's caused by the user invoking the task and + # only errors that inherit from it are rescued. + # + # So, for example, if the developer declares a required argument after an + # option, it should raise an ::ArgumentError and not ::Thor::ArgumentError, + # because it was caused by the developer and not the "final user". + # + class Error < StandardError #:nodoc: + end + + # Raised when a task was not found. + # + class UndefinedTaskError < Error #:nodoc: + end + + # Raised when a task was found, but not invoked properly. + # + class InvocationError < Error #:nodoc: + end + + class RequiredArgumentMissingError < InvocationError #:nodoc: + end + + class MalformattedArgumentError < InvocationError #:nodoc: + end +end |