luyadev / luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
https://luya.io
MIT License
812 stars 207 forks source link

Configurable transfer exception whitelist #1774

Closed nadar closed 6 years ago

nadar commented 6 years ago

Provide a new option to configure the error handler to whiteliste exceptions which should NOT be transfered to the error API.

'components' => [
    'errorHandler' => [
        'whitelist' => [], // this would send all exception
        'whitelist' => ['luya\Exception'], // all exceptions except of luya\Exception
    ]
]