-
Notifications
You must be signed in to change notification settings - Fork 2
ValidationNamedCheckException.md
Craig Manley edited this page Feb 17, 2016
·
5 revisions
Extends the Validate\ValidationCheckException class with a custom contructor and getName() accessor method. Used for throwing exceptions about failed validations for which the name is known.
- Class name: ValidationNamedCheckException
- Namespace: Validate
- Parent class: Validate\ValidationCheckException
The following classes and methods throw this exception:
__construct(string $name, string $check, mixed $value, string $message = null)
Constructor.
- $name string - the checked parameter/key/field name
- $check string - name of the check that failed
- $value mixed - the value that isn't valid
- $message string - optional custom message; if not given, then a generic message is created based on the other arguments
string getName()
Returns the name of the parameter/key/field that caused the failure.