mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
12 lines
241 B
PHP
12 lines
241 B
PHP
<?php
|
|
|
|
|
|
namespace Safe\Exceptions;
|
|
|
|
class OpensslException extends \Exception implements SafeExceptionInterface
|
|
{
|
|
public static function createFromPhpError(): self
|
|
{
|
|
return new self(\openssl_error_string() ?: '', 0);
|
|
}
|
|
}
|