source: Dev/branches/jQueryUI/server/rdfapi/sparql/SparqlParserException.php @ 249

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

This one's for Subversion, because it's so close...

First widget (stripped down sequencer).
Seperated client and server code in two direcotry trees.

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.