You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
553 B
21 lines
553 B
<?php
|
|
|
|
namespace ExceptionHandle;
|
|
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
use Slim\Exception\HttpSpecializedException;
|
|
use Throwable;
|
|
|
|
class PDOError extends HttpSpecializedException {
|
|
|
|
protected string $title = "PDO connection failed";
|
|
|
|
public function __construct(ServerRequestInterface $request,string $message,Throwable $previous)
|
|
{
|
|
$this->file = $previous->getFile();
|
|
$this->line = $previous->getLine();
|
|
$this->code = $previous->getCode();
|
|
parent::__construct($request,$message,$previous);
|
|
}
|
|
|
|
} |