MintedFormatError class

The error ParseOutcome.getOrThrow raises, carrying the typed failure and its rendered message.

An Error, because nothing throws at input: every fallible door reports its failure in the return type. Reaching this means a caller asserted a value was valid and was wrong, which is a bug in their source rather than a condition to catch.

Inheritance

Constructors

MintedFormatError.from(MintedFailure failure)
Builds the error from failure, rendering it into an Invalid <typeName>: <message>.
factory

Properties

failure MintedFailure
Why the value was refused, in the offending type's own vocabulary. Switch on it to react to a specific cause. message is the same thing rendered.
final
hashCode int
The hash code for this object.
no setterinherited
message String
The rendered Invalid <typeName>: <message> text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace at the point where this error was first thrown.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited