| 1 | <?php |
||
| 10 | class HydratingException extends \Exception |
||
| 11 | { |
||
| 12 | /** @var array */ |
||
| 13 | private $errorsMap; |
||
| 14 | /** @return array */ |
||
| 15 | public function getErrorsMap() { return $this->errorsMap; } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * HydratingException constructor. |
||
| 19 | * All the leaves of errors map should describe a specific error. |
||
| 20 | * |
||
| 21 | * @param array $errorsMap |
||
| 22 | * @param string $message |
||
| 23 | * @param int $code |
||
| 24 | */ |
||
| 25 | public function __construct($errorsMap, $message = "", $code = 412) |
||
| 30 | } |
||
| 31 |