ValidationException Class Reference

Detailed Description

ValidationException signals an exception in validation.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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 (   $field,
  $value,
  $message = "",
  $code = 0,
\Exception  $previous = null 
)

Constructor.

Parameters
$fieldThe name of the field
$valueThe value of the field
$messageThe error message
$codeThe error code
$previousThe previous Exception

Definition at line 31 of file ValidationException.php.

Member Function Documentation

getField ( )

Get the name of the field.

Returns
String

Definition at line 41 of file ValidationException.php.

getValue ( )

Get the value of the field.

Returns
String

Definition at line 49 of file ValidationException.php.

__toString ( )

Get a string representation of the exception.

Returns
String

Definition at line 57 of file ValidationException.php.