Exception: Thor::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/thor/error.rb

Overview

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”.

Direct Known Subclasses

InvocationError, UndefinedTaskError