Updated exceptions package

This commit is contained in:
Graham Campbell
2015-07-25 13:30:58 +01:00
parent 14bbe69509
commit e91cf591ea
4 changed files with 44 additions and 7 deletions

View File

@@ -72,4 +72,38 @@ return [
'CachetHQ\Cachet\Exceptions\Filters\ApiFilter',
],
/*
|--------------------------------------------------------------------------
| Default Displayer
|--------------------------------------------------------------------------
|
| Here you may define the default displayer for your application.
|
| This displayer will be used if your filters have filtered out all the
| displayers, otherwise leaving us unable to displayer the exception.
|
*/
'default' => 'GrahamCampbell\Exceptions\Displayers\HtmlDisplayer',
/*
|--------------------------------------------------------------------------
| Exception Levels
|--------------------------------------------------------------------------
|
| Here are each of the log levels for the each exception.
|
| If an exception passes an instance of test for each key, then the log
| level used is the value associated with each key.
|
*/
'levels' => [
'Illuminate\Session\TokenMismatchException' => 'notice',
'Illuminate\Database\Eloquent\ModelNotFoundException' => 'warning',
'Symfony\Component\HttpKernel\Exception\HttpExceptionInterface' => 'warning',
'Symfony\Component\Debug\Exception\FatalErrorException' => 'critical',
'Exception' => 'error',
],
];