summaryrefslogtreecommitdiffstats
path: root/src/exceptions/out_of_boundings.php
blob: c090c6ef7b61bf58f255a9969fd1717847da710b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
 * File containing the ezcGraphMatrixOutOfBoundingsException class
 *
 * @package Graph
 * @version //autogen//
 * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 */
/**
 * Exception thrown when a requested matrix value is out of the boundings of 
 * the matrix.
 *
 * @package Graph
 * @version //autogen//
 */
class ezcGraphMatrixOutOfBoundingsException extends ezcGraphException
{
    /**
     * Constructor
     * 
     * @param int $rows
     * @param int $columns
     * @param int $rPos
     * @param int $cPos
     * @return void
     * @ignore
     */
    public function __construct( $rows, $columns, $rPos, $cPos )
    {
        parent::__construct( "Position '{$rPos}, {$cPos}' is out of the matrix boundings '{$rows}, {$columns}'." );
    }
}

?>
OpenPOWER on IntegriCloud