# metricool/2.1.1/app/Features/UserSettings/Exceptions/StorageSubmitException.php

Metricool – Social media and site statistics, version 2.1.1. 26 lines.

- Page: https://pluginprobe.com/plugins/metricool/2.1.1/code/app/Features/UserSettings/Exceptions/StorageSubmitException.php
- Raw: https://pluginprobe.com/plugins/metricool/2.1.1/raw/app/Features/UserSettings/Exceptions/StorageSubmitException.php
- Modified: 2026-08-20T14:08:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/metricool/2.1.1/code/app/Features/UserSettings/Exceptions/StorageSubmitException.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Metricool\Features\UserSettings\Exceptions;

class StorageSubmitException extends \RuntimeException
{
    /**
     * key-value pair of errors occurred during the submit process. The key
     * should reflect the storage name and the value the error message from
     * the client.
     */
    private array $errors = [];

    public function setErrors(array $errors): void
    {
        $this->errors = $errors;
    }

    public function getErrors(): array
    {
        return $this->errors;
    }
}

```
