PHP 5 Advanced: Visual QuickPro Guide by Ullman Larry

PHP 5 Advanced: Visual QuickPro Guide by Ullman Larry

Author:Ullman, Larry [Ullman, Larry]
Language: eng
Format: mobi
Publisher: Peachpit Press
Published: 2007-03-04T16:00:00+00:00


Script 8.3. This script first extends the Exception class to create a more specific type of exception handler. Then it defines and uses a WriteToFile class, which throws exceptions of type FileException.

Begin defining an extension to the Exception class. class FileException extends Exception {

This class, called FileException, will specifically handle file opening, writing, and closing errors. It will add one method to the inherited Exception methods.

Begin defining the get_details() method.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.