Files
kiri-core/http-core/Abstracts/ExceptionHandlerInterface.php
T

24 lines
357 B
PHP
Raw Normal View History

2021-10-25 18:25:14 +08:00
<?php
namespace Http\Abstracts;
use Http\Constrict\Response;
use Throwable;
use Http\Constrict\ResponseInterface;
/**
*
*/
interface ExceptionHandlerInterface
{
/**
* @param Throwable $exception
* @param Response $response
* @return ResponseInterface
*/
public function emit(Throwable $exception, Response $response): ResponseInterface;
}