EZ-Components

This commit is contained in:
Andreas Österreicher
2009-02-17 15:27:43 +00:00
parent 359c3c55c9
commit 0a8e90a8b3
572 changed files with 64490 additions and 0 deletions
@@ -0,0 +1,20 @@
<?php
/**
* Base exception for the ImageAnalysis package.
*
* @package ImageAnalysis
* @version 1.1.3
* @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* General exception container for the ImageAnalysis component.
*
* @package ImageAnalysis
* @version 1.1.3
*/
abstract class ezcImageAnalyzerException extends ezcBaseException
{
}
?>
@@ -0,0 +1,37 @@
<?php
/**
* File containing the ezcImageAnalyzerFileNotProcessableException.
*
* @package ImageAnalysis
* @version 1.1.3
* @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* The option name you tried to register is already in use.
*
* @package ImageAnalysis
* @version 1.1.3
*/
class ezcImageAnalyzerFileNotProcessableException extends ezcImageAnalyzerException
{
/**
* Creates a new ezcImageAnalyzerFileNotProcessableException.
*
* @param string $file Not processable file.
* @param string $reason Reason that the file is not processable.
* @return void
*/
function __construct( $file, $reason = null )
{
$reasonPart = '';
if ( $reason )
{
$reasonPart = " Reason: $reason.";
}
parent::__construct( "Could not process file '{$file}'.{$reasonPart}" );
}
}
?>
@@ -0,0 +1,31 @@
<?php
/**
* File containing the ezcImageAnalyzerInvalidHandlerException.
*
* @package ImageAnalysis
* @version 1.1.3
* @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* A registered handler class does not exist or does not inherit from ezcImageAnalyzerHandler.
*
* @package ImageAnalysis
* @version 1.1.3
*/
class ezcImageAnalyzerInvalidHandlerException extends ezcImageAnalyzerException
{
/**
* Creates a new ezcImageAnalyzerInvalidHandlerException.
*
* @param string $handlerClass Invalid class name.
* @return void
*/
function __construct( $handlerClass )
{
parent::__construct( "The registered handler class '{$handlerClass}' does not exist or does not inherit from ezcImageAnalyzerHandler." );
}
}
?>