EasyValidationException class

Thrown by the generated fromJson of a class annotated with @EasyJson(strict: true) when the payload fails validation.

Carries every problem found (not just the first one), with the same EasyIssues that validate / fromJsonSafe would report.

Implemented types

Constructors

EasyValidationException(List<EasyIssue> issues)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
issues List<EasyIssue>
All problems found in the payload. Never empty.
final
runtimeType Type
A representation of the runtime type of the object.
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