1: <?php
2:
3: namespace Guzzle\Service\Exception;
4:
5: use Guzzle\Common\Exception\RuntimeException;
6:
7: class ValidationException extends RuntimeException
8: {
9: protected $errors = array();
10:
11: /**
12: * Set the validation error messages
13: *
14: * @param array $errors Array of validation errors
15: */
16: public function setErrors(array $errors)
17: {
18: $this->errors = $errors;
19: }
20:
21: /**
22: * Get any validation errors
23: *
24: * @return array
25: */
26: public function getErrors()
27: {
28: return $this->errors;
29: }
30: }
31: