Cleanup exception handling

You're going to love this @joecohens and @jbrooksuk :)
This commit is contained in:
Graham Campbell
2015-07-06 18:21:23 +01:00
parent a72543daa2
commit bf05197c4f
3 changed files with 61 additions and 20 deletions
+20
View File
@@ -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',
],
/*