コード例 #1
0
 /**
  * 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}");
 }
コード例 #2
0
 /**
  * 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." );
 }