PHP Classes

File: exceptions/DirectoryException.class.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Marius Zadara  >  ExifSort  >  exceptions/DirectoryException.class.php  >  Download  
File: exceptions/DirectoryException.class.php
Role: Class source
Content type: text/plain
Description: Directory exception
Class: ExifSort
Read EXIF information from picture files
Author: By
Last change:
Date: 7 years ago
Size: 882 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 DirectoryException extends Exception
     * Exception constructor
     * @param String The exception message
public function DirectoryException($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("Directory Exception: %s", $this->message);