Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/thecodingmachine/safe/generated/Exceptions/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/thecodingmachine/safe/generated/Exceptions/PsException.php

<?php
namespace Safe\Exceptions;

class PsException 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);
    }
}