PHP Classes

File: exceptions/FileException.class.php

Recommend this page to a friend!
  Classes of Marius Zadara   ExifSort   exceptions/FileException.class.php   Download  
File: exceptions/FileException.class.php
Role: Class source
Content type: text/plain
Description: general file exception
Class: ExifSort
Read EXIF information from picture files
Author: By
Last change:
Date: 15 years ago
Size: 867 bytes


Class file image Download

 * 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
     * 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);