mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-23 04:56:02 +03:00
31 lines
541 B
PHP
31 lines
541 B
PHP
<?php
|
|
|
|
namespace Guzzle\Service\Exception;
|
|
|
|
use Guzzle\Common\Exception\RuntimeException;
|
|
|
|
class ValidationException extends RuntimeException
|
|
{
|
|
protected $errors = array();
|
|
|
|
/**
|
|
* Set the validation error messages
|
|
*
|
|
* @param array $errors Array of validation errors
|
|
*/
|
|
public function setErrors(array $errors)
|
|
{
|
|
$this->errors = $errors;
|
|
}
|
|
|
|
/**
|
|
* Get any validation errors
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getErrors()
|
|
{
|
|
return $this->errors;
|
|
}
|
|
}
|