ValidationAppException class final

Исключение валидации.

Бросается при нарушении правил валидации данных. Маппится в Failure.validation через DomainExceptionFailureMapper.

type — тип ошибки валидации. field — имя поля с ошибкой (опционально). message — описание ошибки (опционально). fieldErrors — ошибки по полям (опционально).

Implemented types

Constructors

ValidationAppException(ValidationFailure type, {String? field, String? message, Map<String, List<String>> fieldErrors = const {}})
const

Properties

field → String?
final
fieldErrors → Map<String, List<String>>
final
hashCode → int
The hash code for this object.
no setterinherited
message → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → ValidationFailure
final

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