diff options
Diffstat (limited to 'src/exceptions/invalid_dimensions.php')
-rw-r--r-- | src/exceptions/invalid_dimensions.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/exceptions/invalid_dimensions.php b/src/exceptions/invalid_dimensions.php new file mode 100644 index 0000000..e3d98bd --- /dev/null +++ b/src/exceptions/invalid_dimensions.php @@ -0,0 +1,25 @@ +<?php +/** + * File containing the ezcGraphMatrixInvalidDimensionsException 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 operation i not possible because of incompatible + * matrix dimensions. + * + * @package Graph + * @version //autogen// + */ +class ezcGraphMatrixInvalidDimensionsException extends ezcGraphException +{ + public function __construct( $rows, $columns, $dRows, $dColumns ) + { + parent::__construct( "Matrix <{$dRows}, {$dColumns}> is incompatible with matrix <{$rows}, {$columns}> for requested operation." ); + } +} + +?> |