PHP 클래스 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.
상속: extends Exception, implements JsonSerializable
파일 보기 프로젝트 열기: vanilla/vanilla

보호된 프로퍼티들

프로퍼티 타입 설명
$validation

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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

jsonSerialize() 공개 메소드

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

프로퍼티 상세

$validation 보호되어 있는 프로퍼티

protected $validation