Parses the given string s into a Boolean, optionally applying optModifier. The method attempts to convert the string to a Boolean using parseAndRecover, which provides recovery logic for invalid inputs by wrapping them in appropriate exceptions.
Parses the given string s into a Boolean, optionally applying optModifier. The method attempts to convert the string to a Boolean using parseAndRecover, which provides recovery logic for invalid inputs by wrapping them in appropriate exceptions.
Value parameters
optModifier
an optional modifier that can affect the parsing process (not utilized in the current implementation).
s
the input string to be parsed into a Boolean.
Attributes
Returns
a Try containing Boolean on success, or a Failure with an appropriate exception on error.