* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\Module\PsxDesign\Exception\Handler; if (!defined('_PS_VERSION_')) { exit; } use Exception; interface ErrorHandlerInterface { /** * @param Exception $error * @param int|null $code * @param bool|null $throw * @param array|null $data * * @return mixed */ public function handle(Exception $error, ?int $code = null, ?bool $throw = true, ?array $data = null); }