Miscellaneous
addErrorToBase()
Signature
Section titled “Signature”addErrorToBase() — returns any
Description
Section titled “Description”Adds an error on a specific property.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
message | string | yes | — | The error message (such as “Please enter a correct name in the form field” for example). |
name | string | yes | — | A name to identify the error by (useful when you need to distinguish one error from another one set on the same object and you don’t want to use the error message itself for that). |
Examples
Section titled “Examples”Adds an error on the object as a whole (not related to any specific property). <!--- Add an error on the object ---> <cfset this.addErrorToBase(message="Your email address must be the same as your domain name.")>