Cleanup exception handling
You're going to love this @joecohens and @jbrooksuk :)
This commit is contained in:
@@ -11,6 +11,25 @@
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exception Transformers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here are each of the exception transformers setup for your application.
|
||||
|
|
||||
| This allows you to turn your exceptions into other exceptions such as
|
||||
| http exceptions for perfect results when passed to the displayers. Note
|
||||
| that this list is processed in order and subsequent transformers can
|
||||
| still modify the results of previous ones if required.
|
||||
|
|
||||
*/
|
||||
|
||||
'transformers' => [
|
||||
'GrahamCampbell\Exceptions\Transformers\CsrfTransformer',
|
||||
'CachetHQ\Cachet\Exceptions\Transformers\ModelNotFoundTransformer'
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exception Displayers
|
||||
@@ -30,6 +49,7 @@ return [
|
||||
'GrahamCampbell\Exceptions\Displayers\DebugDisplayer',
|
||||
'GrahamCampbell\Exceptions\Displayers\HtmlDisplayer',
|
||||
'GrahamCampbell\Exceptions\Displayers\JsonDisplayer',
|
||||
'GrahamCampbell\Exceptions\Displayers\JsonApiDisplayer',
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user