Elegant Ways of Handling PHP Errors and Exceptions
Murphy was right: things will go wrong in any given situation if you only give them a chance. Therefore this session will discuss ways of limiting the risk of things going wrong in your application. This session will begin with describing the various error levels there are in PHP and how they can be handled elegantly to make a better application. The session will then discuss PHP Exceptions, the differences between an exception and an error, and of course the additional possibilities we get from using exceptions. The session will demonstrate how exceptions can be used not only for handling errors, but also for handling the application’s flow, thereby helping us avoid Murphy’s Law.