source: Dev/trunk/rdfapi/sparql/SparqlParserException.php @ 12

Last change on this file since 12 was 12, checked in by basvannuland, 14 years ago

Added RAP RDF API
Added RDF reader writer for save and load survey

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.