WEB-INF.cftags.component coldbox.system.validation.result.ValidationError
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
IValidationError
|
configure(string message, string field, [string rejectedValue], [string validationType], [any validationData])
Configure method, which can do setters for all required error params. |
struct
|
getErrorMetadata()
Get the error metadata. |
string
|
getField()
Get the error field. |
struct
|
getMemento()
Get the error representation. |
string
|
getMessage()
Get the error message. |
any
|
getRejectedValue()
Get the rejected value. |
string
|
getValidationData()
Get the error validation data. |
string
|
getValidationType()
Get the error validation type. |
IValidationError
|
setErrorMetadata(any data)
Set error metadata that can be used in i18n message replacements or in views. |
IValidationError
|
setField(string field)
Set the field. |
IValidationError
|
setMessage(string message)
Set the error message. |
IValidationError
|
setRejectedValue(any value)
Set the rejected value. |
IValidationError
|
setValidationData(any data)
Set the validator data. |
IValidationError
|
setValidationType(any validationType)
Set the validator type name that rejected. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Method Detail |
---|
Configure method, which can do setters for all required error params
message
- The required error messagefield
- The required field that case the exceptionrejectedValue
- The optional rejected valuevalidationType
- The name of the rejected validatorvalidationData
Get the error metadata
Get the error field
getField
in interface
IValidationError
Get the error representation
Get the error message
getMessage
in interface
IValidationError
Get the rejected value
getRejectedValue
in interface
IValidationError
Get the error validation data
getValidationData
in interface
IValidationError
Get the error validation type
getValidationType
in interface
IValidationError
Set error metadata that can be used in i18n message replacements or in views
data
- The name-value pairs of data to store in this error.Set the field
setField
in interface
IValidationError
field
Set the error message
setMessage
in interface
IValidationError
message
- The error messageSet the rejected value
setRejectedValue
in interface
IValidationError
value
- The rejected valueSet the validator data
setValidationData
in interface
IValidationError
data
- The data of the validatorSet the validator type name that rejected
setValidationType
in interface
IValidationError
validationType
- The name of the rejected validator