Files
accounting_dev_v2/vendor/thecodingmachine/safe/generated/Exceptions/UrlException.php
T
2026-09-11 16:03:00 +07:00

12 lines
306 B
PHP

<?php
namespace Safe\Exceptions;
class UrlException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
}
}