diff options
Diffstat (limited to 'src/exceptions/out_of_boundings.php')
-rw-r--r-- | src/exceptions/out_of_boundings.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/exceptions/out_of_boundings.php b/src/exceptions/out_of_boundings.php new file mode 100644 index 0000000..8fe5848 --- /dev/null +++ b/src/exceptions/out_of_boundings.php @@ -0,0 +1,25 @@ +<?php +/** + * File containing the ezcGraphMatrixOutOfBoundingsException 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 a rrequested matrix value is out of the boundings of + * the matrix. + * + * @package Graph + * @version //autogen// + */ +class ezcGraphMatrixOutOfBoundingsException extends ezcGraphException +{ + public function __construct( $rows, $columns, $rPos, $cPos ) + { + parent::__construct( "Position <{$rPos}, {$cPos}> is out of the matrix boundings <{$rows}, {$columns}>." ); + } +} + +?> |