slimphp / PHP-View

A Simple PHP Renderer for Slim 3 & 4 (or any other PSR-7 project)
MIT License
264 stars 60 forks source link

Handling 404 errors #43

Closed whitebyte closed 4 years ago

whitebyte commented 5 years ago

When a non-existent template is requested, PHP-View throws a generic RuntimeException. Is it possible to include some additional info in it (errorcode or something alike) to distinguish between 404 errors and other runtime exceptions?