Files
kiri-core/Server/ExceptionHandlerInterface.php
T
as2252258@163.com 8b638abf13 modify
2021-08-05 00:57:45 +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;
}