source: Dev/branches/rest-dojo-ui/jQueryUI/server/rdfapi/sparql/SparqlParserException.php @ 312

Last change on this file since 312 was 312, checked in by jkraaijeveld, 13 years ago
File size: 740 bytes
Line 
1<?php
2// ---------------------------------------------
3// class: SparqlParserExecption
4// ---------------------------------------------
5/**
6* A SPARQL Parser Execption for better errorhandling.
7*
8* @author   Tobias Gauss <tobias.gauss@web.de>
9* @version       $Id$
10* @license http://www.gnu.org/licenses/lgpl.html LGPL
11*
12* @package sparql
13*/
14Class SparqlParserException extends Exception{
15 
16        private $tokenPointer;
17
18        public function __construct($message, $code = 0, $pointer){
19
20                $this->tokenPointer = $pointer;
21                parent::__construct($message, $code);
22        }
23
24        /**
25        * Returns a pointer to the token which caused the exception.
26        * @return int
27        */
28        public function getPointer(){
29                return $this->tokenPointer;
30        }
31
32}
33?>
Note: See TracBrowser for help on using the repository browser.