#2294 - Switch to 100% exceptions

Identifier #2294
Issue type Feature request or suggestion
Title Switch to 100% exceptions
Status Closed (rejected)
Tags

Risk: Major rearchitecting (custom)

Handling member Chris Graham
Addon core
Description Use PHP's set_exception_handler to set a default exception handler, then make warn_exit calls etc into throw calls etc. For most exit's in the code, we should instead be throwing an exception.

Standard PHP errors can be turned into exceptions:
http://php.net/manual/en/function.set-error-handler.php#112881

We can update the Code Book to (possibly simplify) the part about error handling.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated