Model Object
allErrors()
Signature
Section titled “Signature”allErrors() — returns array
Available in: model
Category: Error Functions
Description
Section titled “Description”Returns an array of all the errors on the object.
Examples
Section titled “Examples”// Get all the errors for the `user` object.
errorInfo = user.allErrors();
// Sample return of method.
[
{
message: 'Username must not be blank.',
name: 'usernameError',
property: 'username'
},
{
message: 'Password must not be blank.',
name: 'passwordError',
property: 'password'
}
]