PHP 클래스 Bluz\Validator\Exception\ValidatorException

저자: Anton Shevchuk
상속: extends Bluz\Application\Exception\BadRequestException
파일 보기 프로젝트 열기: bluzphp/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$errors list of error messages
$message exception message

공개 메소드들

메소드 설명
exception ( string $key, string $error ) : self Create and throw Exception
getErrors ( ) : array Get errors
setError ( string $key, string $error ) : void Set error by Key
setErrors ( array $errors ) : void Set errors

메소드 상세

exception() 공개 정적인 메소드

Create and throw Exception
public static exception ( string $key, string $error ) : self
$key string
$error string
리턴 self

getErrors() 공개 메소드

Get errors
public getErrors ( ) : array
리턴 array

setError() 공개 메소드

Set error by Key
public setError ( string $key, string $error ) : void
$key string
$error string
리턴 void

setErrors() 공개 메소드

Set errors
public setErrors ( array $errors ) : void
$errors array
리턴 void

프로퍼티 상세

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

list of error messages
protected $errors

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

exception message
protected $message