ValidationException Class Reference
Detailed Description
ValidationException signals an exception in validation.
Definition at line 18 of file ValidationException.php.
Inheritance diagram for ValidationException:
Public Member Functions | |
__construct ($field, $value, $message="", $code=0, \Exception $previous=null) | |
getField () | |
getValue () | |
__toString () | |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | $field, | |
$value, | |||
$message = "" , |
|||
$code = 0 , |
|||
\Exception | $previous = null |
||
) |
Constructor.
- Parameters
-
$field The name of the field $value The value of the field $message The error message $code The error code $previous The previous Exception
Definition at line 31 of file ValidationException.php.
Member Function Documentation
◆ getField()
getField | ( | ) |
◆ getValue()
getValue | ( | ) |
◆ __toString()
__toString | ( | ) |
Get a string representation of the exception.
- Returns
- String
Definition at line 57 of file ValidationException.php.