-
Notifications
You must be signed in to change notification settings - Fork 2
ValidationCheckException.md
Craig Manley edited this page Feb 17, 2016
·
2 revisions
Extends the Validate\ValidationException class with a custom constructor and some accessor methods to retrieve information about a failed validation.
- Class name: ValidationCheckException
- Namespace: Validate
- Parent class: Validate\ValidationException
The following classes and methods throw this exception:
__construct(string $check, mixed $value, string $message)
Constructor.
- $check string - name of check that failed
- $value mixed - the value that isn't valid
- $message string - optional custom message
string getCheck()
Returns the name of the check that failed.
mixed getValue()
Returns the value that caused the failure.
string getValueSimple()
Returns a simplified string representation of the value that caused the failure.