diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-01-03 12:48:08 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-01-03 12:48:08 +0000 |
commit | 0024eea585da209c8dd6e286f634d3d41d6034a3 (patch) | |
tree | 3b60b92f31defa94473846984fd11086452bc724 /src/exceptions | |
parent | 7090a42cd106646837dde004fd8e67810c003329 (diff) | |
download | zetacomponents-graph-0024eea585da209c8dd6e286f634d3d41d6034a3.zip zetacomponents-graph-0024eea585da209c8dd6e286f634d3d41d6034a3.tar.gz |
- Fixed issue #9916: ArrayDataSet can handle Iterator was not documented
- Added and test additional typecheck
Diffstat (limited to 'src/exceptions')
-rw-r--r-- | src/exceptions/invalid_data_source.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/exceptions/invalid_data_source.php b/src/exceptions/invalid_data_source.php new file mode 100644 index 0000000..2405b92 --- /dev/null +++ b/src/exceptions/invalid_data_source.php @@ -0,0 +1,26 @@ +<?php +/** + * File containing the ezcGraphInvalidArrayDataSourceException class + * + * @package Graph + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception thrown when an invalid data source is provided for an array + * data set. + * + * @package Graph + * @version //autogen// + */ +class ezcGraphInvalidArrayDataSourceException extends ezcGraphException +{ + public function __construct( $value ) + { + $type = gettype( $value ); + parent::__construct( "The array dataset can only use arrays and iterators, but you supplied '{$type}'." ); + } +} + +?> |