PHP Class Garden\Exception\ValidationException

The validation object collects errors and is mutable. Once it's ready to be thrown as an exception it gets converted to an instance of the immutable {@link ValidationException} class.
Inheritance: extends Exception, implements JsonSerializable
Datei anzeigen Open project: vanilla/vanilla

Protected Properties

Property Type Description
$validation

Public Methods

Method Description
__construct ( Validation $validation ) Initialize an instance of the {@link ValidationException} class.
jsonSerialize ( ) : mixed Specify data which should be serialized to JSON.

Method Details

__construct() public method

Initialize an instance of the {@link ValidationException} class.
public __construct ( Validation $validation )
$validation Garden\Validation The {@link Validation} object for the exception.

jsonSerialize() public method

Specify data which should be serialized to JSON.
public jsonSerialize ( ) : mixed
return mixed data which can be serialized by json_encode, which is a value of any type other than a resource.

Property Details

$validation protected_oe property

protected $validation