PHP Classes
Icontem

File: exceptions/DirectoryException.class.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marius Zadara  >  ExifSort  >  exceptions/DirectoryException.class.php  
File: exceptions/DirectoryException.class.php
Role: Class source
Content type: text/plain
Description: Directory exception
Class: ExifSort
Read EXIF information from picture files
 

Contents

Class file image Download
<?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 DirectoryException extends Exception 
{
    
/**
     * Exception constructor
     * @param String The exception message
     */
    
public function DirectoryException($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("Directory Exception: %s"$this->message); 
    }
}

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products