This commit is contained in:
2021-10-25 18:25:14 +08:00
parent 6605aae410
commit a9d106a1cf
48 changed files with 5090 additions and 0 deletions
@@ -0,0 +1,23 @@
<?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;
}