NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class ValidationException

Guzzle exception

  Exception
  RuntimeException
  Guzzle\Common\Exception\RuntimeException implements Guzzle\Common\Exception\GuzzleException
  Guzzle\Service\Exception\ValidationException

Namespace: Guzzle\Service\Exception
Located at Guzzle/Service/Exception/ValidationException.php

## Methods summary

- `public` `setErrors ( array $errors )`

  Set the validation error messages

- `public` `getErrors ( )`

  Get any validation errors

## Methods detail

# `public`
`setErrors( array $errors )`

Set the validation error messages

#### Parameters

$errors
  `array`
  $errors Array of validation errors

# `public array`
`getErrors( )`

Get any validation errors

#### Returns

`array`

### Methods inherited from Exception

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

### Magic methods summary

## Properties summary

`protected array` | $errors | #

### Properties inherited from Exception

`$code`, `$file`, `$line`, `$message`