struct

Kebab::Convert::Failure

Inherits Struct < Value < Object

Returned by a converter when it can't produce a value. Kebab wraps this into an Error::InvalidValue and threads in the option/argument, raw input, target type, and responsible command.

Constructors

new(reason : String | Nil = nil, name : String | Nil = nil)
Source

Instance methods

name

Optional human-readable noun for the target type (e.g. "whole number" instead of "Int32").

Source
reason

Optional explanation rendered in parentheses (e.g. "expected one of: a, b").

Source