Files
kiri-core/http-server/ExceptionHandlerInterface.php
T
2021-09-10 10:53:54 +08:00

24 lines
353 B
PHP

<?php
namespace Server;
use Server\Constrict\Response;
use Throwable;
use Server\Constrict\ResponseInterface;
/**
*
*/
interface ExceptionHandlerInterface
{
/**
* @param Throwable $exception
* @param Response $response
* @return ResponseInterface
*/
public function emit(Throwable $exception, Response $response): ResponseInterface;
}