Exception: CLI::ParsingError::CastError
- Inherits:
-
CLI::ParsingError
- Object
- ArgumentError
- CLI::ParsingError
- CLI::ParsingError::CastError
- Defined in:
- lib/cli.rb
Instance Method Summary collapse
-
#initialize(arg, cast_name, error) ⇒ CastError
constructor
A new instance of CastError.
Constructor Details
#initialize(arg, cast_name, error) ⇒ CastError
Returns a new instance of CastError.
86 87 88 |
# File 'lib/cli.rb', line 86 def initialize(arg, cast_name, error) super("failed to cast: '#{arg}' to type: #{cast_name}: #{error}") end |