new Deps
This commit is contained in:
1 parent
e7a49138bb
commit
aae17f10a6
818 files changed
+70693
-16406
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class MysqlException 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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user