1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 08:41:17 +02:00

Error handling: Document classes and interfaces

This commit is contained in:
Franz Liedke
2019-08-20 19:41:51 +02:00
parent be5c1f6033
commit 3eb1a6f133
8 changed files with 72 additions and 0 deletions

View File

@@ -19,6 +19,13 @@ use Psr\Http\Server\MiddlewareInterface as Middleware;
use Psr\Http\Server\RequestHandlerInterface as Handler;
use Throwable;
/**
* Catch exceptions thrown in a PSR-15 middleware stack and handle them safely.
*
* All errors will be rendered using the provided formatter. In addition,
* unknown errors will be passed on to one or multiple
* {@see \Flarum\Foundation\ErrorHandling\Reporter} instances.
*/
class HandleErrors implements Middleware
{
/**