A value couldn't be converted to its target type. Dispatchable on
value type via Of(T), on command via For(C), or on both via
Exact(T, C).
Constructors
new(value :
String, source :
Schema::Option |
Schema::Argument, schema :
Schema::Command, target_name :
String |
Nil = nil, reason :
String |
Nil = nil, invoked :
String |
Nil = nil)
SourceInstance methods
reason
Optional explanation provided by the converter (rendered in parens).
Sourceschema
The command being parsed when the error fired.
Sourcesource
The option or argument the value was being parsed for.
Sourcetarget_name
Human-readable noun for the target type, supplied by the converter
(e.g. "whole number"). Nil falls back to the type's class name.
Sourcetarget_type_name
The target type's class name.
Sourcevalue
The raw input that couldn't be converted.
Source