class X::Str::Numeric is Exception { }
Error thrown (or wrapped in a Failure
) when a conversion from string to a number fails.
For example
say +"42 answers";
CATCH { default { put .^name, ': ', .Str } };
Returns the string that was attempted to convert to a number
Gives the position into the string where the parsing failed.
Verbal description of the reason why the conversion failed.
Type relations for X::Str::Numeric
Expand chart above