35 lines
844 B
PHP
35 lines
844 B
PHP
<?php
|
|
/**
|
|
* File containing the ezcGraphToolsIncompatibleDriverException class
|
|
*
|
|
* @package Graph
|
|
* @version 1.4.3
|
|
* @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
|
|
* @license http://ez.no/licenses/new_bsd New BSD License
|
|
*/
|
|
/**
|
|
* Exception thrown when trying to modify rendered images with incompatible
|
|
* graph tools.
|
|
*
|
|
* @package Graph
|
|
* @version 1.4.3
|
|
*/
|
|
class ezcGraphToolsIncompatibleDriverException extends ezcGraphException
|
|
{
|
|
/**
|
|
* Constructor
|
|
*
|
|
* @param mixed $driver
|
|
* @param string $accepted
|
|
* @return void
|
|
* @ignore
|
|
*/
|
|
public function __construct( $driver, $accepted )
|
|
{
|
|
$driverClass = get_class( $driver );
|
|
parent::__construct( "Incompatible driver used. Driver '{$driverClass}' is not an instance of '{$accepted}'." );
|
|
}
|
|
}
|
|
|
|
?>
|