Class ValidatorException
An exception thrown if there are any validation error.
- Exception
- Flikore\Validator\Exception\ValidatorException
Namespace: Flikore\Validator\Exception
Package: Flikore\Validator
Category: Exceptions
Copyright: (c) 2014, George Marques
License: MIT
Author: George Marques <george at georgemarques.com.br>
Version: 0.5.2
Since: 0.1
Located at Flikore/Validator/Exception/ValidatorException.php
Package: Flikore\Validator
Category: Exceptions
Copyright: (c) 2014, George Marques
License: MIT
Author: George Marques <george at georgemarques.com.br>
Version: 0.5.2
Since: 0.1
Located at Flikore/Validator/Exception/ValidatorException.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
#
setError(
Sets the inner exceptions for a specific key. |
public
array
|
#
getMessages( )
Gets all the messages as an array. If there's no inner exceptions (i.e. this is not a set error), then an array will be returned with the message being in the key 0. If the inner exceptions are also from a set, then there'll be an array of messages set to that key (i.e. this will be a nested array of messages). |
Methods inherited from Exception
__construct()
,
__toString()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Magic methods summary
Properties summary
protected
|
$errors |
#
The inner exceptions. |
Properties inherited from Exception
$code
,
$file
,
$line
,
$message