Files
simple-php-router/tests/Pecee/SimpleRouter/Dummy/Handler/ExceptionHandlerThird.php
2018-03-20 03:38:55 +01:00

13 lines
291 B
PHP

<?php
class ExceptionHandlerThird implements \Pecee\Handlers\IExceptionHandler
{
public function handleError(\Pecee\Http\Request $request, \Exception $error) : void
{
global $stack;
$stack[] = static::class;
throw new ResponseException('ExceptionHandler loaded');
}
}