Exceptions in PHP
Learn about exceptions in PHP and their impure behavior.
We'll cover the following...
Exceptions feature prominently in PHP code and can be considered central to error handling in the language. Exceptions are, for all their illustrative cogency, however, impure. This chapter offers a description of exceptions, insights into the questionable purity of exceptions, and the possible alternatives to exceptions for cleaner error handling that are suitable for function composition.
Exceptions are impure
Exceptions are quite often ...