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

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

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.