Skip to content

Commit

Permalink
优化exception
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Oct 15, 2019
1 parent 01cac77 commit 4c71574
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Core/Exception/Handler/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace W7\Core\Exception\Handler;

use Psr\Http\Message\ResponseInterface;
use W7\Core\Exception\FatalExceptionAbstract;
use W7\Core\Exception\ResponseExceptionAbstract;

Expand All @@ -33,7 +34,7 @@ public function log(\Throwable $throwable) {
ilogger()->error($errorMessage, $context);
}

public function handle(ResponseExceptionAbstract $e) {
public function handle(ResponseExceptionAbstract $e) : ResponseInterface {
if ($e->isLoggable) {
$previous = $e;
if ($e instanceof FatalExceptionAbstract) {
Expand Down

0 comments on commit 4c71574

Please sign in to comment.