Files
kiri-core/http-server/ExceptionHandlerInterface.php
T
2021-08-24 18:24:46 +08:00

23 lines
313 B
PHP

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