PHP Class Bluz\Validator\Exception\ValidatorException

Author: Anton Shevchuk
Inheritance: extends Bluz\Application\Exception\BadRequestException
Datei anzeigen Open project: bluzphp/framework Class Usage Examples

Protected Properties

Property Type Description
$errors list of error messages
$message exception message

Public Methods

Method Description
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

Method Details

exception() public static method

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

getErrors() public method

Get errors
public getErrors ( ) : array
return array

setError() public method

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

setErrors() public method

Set errors
public setErrors ( array $errors ) : void
$errors array
return void

Property Details

$errors protected_oe property

list of error messages
protected $errors

$message protected_oe property

exception message
protected $message