errorsOn()

Description

Returns an array of all errors associated with the supplied property (and error name when passed in).

Function Syntax

errorsOn(property [, name ])

Parameters

Parameter Type Required Default Description
property string Yes Specify the property name to return errors for here.
name string No If you want to return only errors on the above property set with a specific error name you can specify it here.

Examples

<!--- Get all errors related to the email address of the user object --->
<cfset errors = user.errorsOn("emailAddress")>