Skip to content

ValidationCheckException.md

Craig Manley edited this page Feb 17, 2016 · 2 revisions

Validate\ValidationCheckException

Extends the Validate\ValidationException class with a custom constructor and some accessor methods to retrieve information about a failed validation.

The following classes and methods throw this exception:

Methods

__construct

__construct(string $check, mixed $value, string $message)

Constructor.

Arguments

  • $check string - name of check that failed
  • $value mixed - the value that isn't valid
  • $message string - optional custom message

getCheck

string getCheck()

Returns the name of the check that failed.

getValue

mixed getValue()

Returns the value that caused the failure.

getValueSimple

string getValueSimple()

Returns a simplified string representation of the value that caused the failure.