Orion PHP  0.11.12
The PHP5.3 framework
exception.php
Go to the documentation of this file.
00001 <?php
00002 
00003 namespace Orion\Core\Query;
00004 
00005 class Exception extends \Orion\Core\Exception
00006 {
00007 
00008     /**
00009      * Generates a Query Exception
00010      * @param string $message
00011      * @param int $code
00012      * @param string $caller Caller class' name
00013      */
00014     public function __construct( $message='An exception occured', $code=256, $line=null )
00015     {
00016         parent::__construct( ( string ) $message, ( int ) $code, 'Query' );
00017         if($line != null) $this->line = $line;
00018     }
00019 
00020 }
00021 
00022 ?>