PHP Classes

File: exceptions/ExifNotFound.class.php

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

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 ExifNotFound extends Exception
{
   
/**
     * Exception constructor
     * @param String The exception message
     */
   
public function ExifNotFound($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("Exif Exception: %s", $this->message);
    }
}

?>