| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Metricool\Features\UserSettings\Exceptions; |
| 6 |
|
| 7 |
class StorageSubmitException extends \RuntimeException |
| 8 |
{ |
| 9 |
/** |
| 10 |
* key-value pair of errors occurred during the submit process. The key |
| 11 |
* should reflect the storage name and the value the error message from |
| 12 |
* the client. |
| 13 |
*/ |
| 14 |
private array $errors = []; |
| 15 |
|
| 16 |
public function setErrors(array $errors): void |
| 17 |
{ |
| 18 |
$this->errors = $errors; |
| 19 |
} |
| 20 |
|
| 21 |
public function getErrors(): array |
| 22 |
{ |
| 23 |
return $this->errors; |
| 24 |
} |
| 25 |
} |
| 26 |
|