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 GraphDatabaseTiein package.
*
* @package GraphDatabaseTiein
* @version 1.0
* @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* General exception container for the GraphDatabaseTiein component.
*
* @package GraphDatabaseTiein
* @version 1.0
*/
abstract class ezcGraphDatabaseException extends ezcBaseException
{
}
?>
@@ -0,0 +1,31 @@
<?php
/**
* File containing the ezcGraphDatabaseMissingColumnException class
*
* @package GraphDatabaseTiein
* @version 1.0
* @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Exception thrown if a requetsted column could not be found in result set
*
* @package GraphDatabaseTiein
* @version 1.0
*/
class ezcGraphDatabaseMissingColumnException extends ezcGraphDatabaseException
{
/**
* Constructor
*
* @param string $column
* @return void
* @ignore
*/
public function __construct( $column )
{
parent::__construct( "Missing column '{$column}' in result set." );
}
}
?>
@@ -0,0 +1,31 @@
<?php
/**
* File containing the ezcGraphDatabaseStatementNotExecutedException class
*
* @package GraphDatabaseTiein
* @version 1.0
* @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Exception thrown if a given statement has not been executed.
*
* @package GraphDatabaseTiein
* @version 1.0
*/
class ezcGraphDatabaseStatementNotExecutedException extends ezcGraphDatabaseException
{
/**
* Constructor
*
* @param PDOStatement $statement
* @return void
* @ignore
*/
public function __construct( $statement )
{
parent::__construct( "Empty result set. Execute the statement before using with ezcGraphDatabaseTiein." );
}
}
?>
@@ -0,0 +1,33 @@
<?php
/**
* File containing the ezcGraphDatabaseTooManyColumnsException class
*
* @package GraphDatabaseTiein
* @version 1.0
* @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Exception thrown if a data set has too many columns for a key value
* association.
*
* @package GraphDatabaseTiein
* @version 1.0
*/
class ezcGraphDatabaseTooManyColumnsException extends ezcGraphDatabaseException
{
/**
* Constructor
*
* @param array $row
* @return void
* @ignore
*/
public function __construct( $row )
{
$columnCount = count( $row );
parent::__construct( "'{$columnCount}' columns are too many in a result." );
}
}
?>