mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
EZ-Components
This commit is contained in:
@@ -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." );
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user