EntityFieldInvalid class

An entity field validation error.

Inheritance
Implemented types

Constructors

EntityFieldInvalid(String reason, Object? value, {Type? entityType, String? tableName, String? fieldName, List<String>? fieldsNames, Map<String, EntityFieldInvalid>? subEntityErrors, Object? parentError, StackTrace? parentStackTrace, Object? previousError, Object? operation})

Properties

entityType → Type?
The entity Type.
final
fieldName → String?
The field name of the value. For a violation of a composite constraint (e.g. @EntityIndex(unique: true)): its fieldsNames joined by , .
final
fieldsNames → List<String>?
The fields of a violated composite constraint (e.g. @EntityIndex(unique: true)), in order, when known; value is then their values (in order, when known). null for a single field.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
no setter
operation → Object?
The operation that caused the Exception.
final
parentError → Object?
The parent/original error.
final
parentStackTrace → StackTrace?
The parentError StackTrace.
final
previousError → Object?
The previous error in the same Transaction.
final
reason → String
The reason of the invalid error.
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
subEntityErrors → Map<String, EntityFieldInvalid>?
The errors of the sub-entity (value) in the fieldName.
final
tableName → String?
The table of the entityType.
final
value → Object?
The invalid value.
final

Methods

copyWith({String? reason, Object? value, Type? entityType, String? tableName, String? fieldName, List<String>? fieldsNames, Map<String, EntityFieldInvalid>? subEntityErrors, Object? parentError, StackTrace? parentStackTrace}) → EntityFieldInvalid
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveToString(Object? o, {String indent = '-- ', Set<Object>? processedObjects}) → String?
toString({Set<Object>? processedObjects}) → String
A string representation of this object.
override
toStringSimple() → String
override

Operators

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