Return to v1.4.5 docs

allErrors()



Returns an array of all the errors on the object.

allErrors() <!--- Get all the errors for the `user` object --->
<cfset errorInfo = user.allErrors()> <!--- Sample Return of Function --->
[
	{
  	message:'Username must not be blank',
    name:'usernameError',
    property:'username'
  },
  {
  	message:'Password must not be blank',
    name:'passwordError',
    property:'password'
  }
]