ValidationException class
Properties
-
code
↔ int
-
getter/setter pairinherited
-
errorCode
↔ String
-
getter/setter pairinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
issues
→ List<ValidationIssue>
-
Every issue of the failed check, with its path, rule
code, message
and params. message has only the first message of each path.
An ExceptionHandler can use it to send another error shape, like
[{field, message, rule}]. Empty when the error was made by hand.
final
-
message
↔ dynamic
-
getter/setter pairinherited
-
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
-
toResponse()
→ dynamic
-
The 422 body. With
CoreFlags.laravelErrors it is
{"message": "...", "errors": {"field": ["..."]}}, else message.
override
-
toString()
→ String
-
A string representation of this object.
inherited