TomlParserExceptionExtension<T> extension
An extension method on parser Result
s that adds a valueOrTomlException
method that behaves like Result.value
but throws a TomlParserException
instead of a ParserException
when the result is a Failure
.
- on
-
- Result<
T>
- Result<
Properties
- valueOrTomlException → T
-
Returns the parsed value of this result, or throws a TOML parser
exception if this is a parse failure.
no setter