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
Afficher le fichier Open project: vanilla/vanilla

Protected Properties

Свойство Type Description
$validation

Méthodes publiques

Méthode 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 méthode

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

jsonSerialize() public méthode

Specify data which should be serialized to JSON.
public jsonSerialize ( ) : mixed
Résultat 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