Flikore Validator
  • Api
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Flikore
    • Validator
      • Exception
      • Interfaces
      • Intl
      • Validators

Exceptions

  • ValidatorException

Class ValidatorException

An exception thrown if there are any validation error.

Exception
Extended by 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

Methods summary

public Flikore\Validator\Exception\ValidatorException[]
# getErrors( )

Gets the inner exceptions from a set of validators.

Gets the inner exceptions from a set of validators.

Returns

Flikore\Validator\Exception\ValidatorException[]
The set of exceptions.
public Flikore\Validator\Exception\ValidatorException
# getError( string $key )

Gets the inner exception for a specific key.

Gets the inner exception for a specific key.

Parameters

$key
string
$key The key to get.

Returns

Flikore\Validator\Exception\ValidatorException
The exception of that key or null if there's none.
public
# setErrors( array $errors )

Sets the inner exceptions for this exception.

Sets the inner exceptions for this exception.

Parameters

$errors
array
$errors The set of exceptions.
public
# setError( Flikore\Validator\Exception\ValidatorException $error, string $key )

Sets the inner exceptions for a specific key.

Sets the inner exceptions for a specific key.

Parameters

$error
Flikore\Validator\Exception\ValidatorException
$error The exception.
$key
string
$key The key name.
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).

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).

Returns

array
The collection of messages.

Methods inherited from Exception

__construct(), __toString(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Magic methods summary

Properties summary

protected Flikore\Validator\Exception\ValidatorException[] $errors
#

The inner exceptions.

The inner exceptions.

Properties inherited from Exception

$code, $file, $line, $message

Flikore Validator API documentation generated by ApiGen 2.8.0