Simple, comprehensive error handling for the 3 PHP error types