| 
<?php
 /**
 * Specification for a specific exception used when the Exif module has not been loaded.
 * The class is final, meaning that it cannot be extended anymore
 *
 * @author Marius Zadara
 * @category Exceptions
 * @final
 */
 final class FileException extends Exception
 {
 /**
 * Exception constructor
 * @param String The exception message
 */
 public function FileException($message)
 {
 // call the parent constructor
 parent::__construct($message);
 }
 
 /**
 * Override the magic method used to display the object.
 * This method is used to bypass the calling of getMessage() function.
 * Also, to improve performance, use the private member 'message' to get the exception text
 */
 public function __toString()
 {
 // format the output string
 return sprintf("File Exception: %s", $this->message);
 }
 }
 
 ?>
 |