You should only use "or die()" for debugging. For production code, you'll need a different approach to error handling. Since that's the whole raison d'etre of exceptions, they're the natural choice. Furthermore, if you're going to do something other than "or die()" for production code, you might...