Source for file SparqlParserException.php

Documentation is available at SparqlParserException.php

  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: fsource_sparql__sparqlSparqlParserException.php.html 443 2007-06-01 16:25:38Z cax $
  10. *
  11. @package sparql
  12. */
  13. Class SparqlParserException extends Exception{
  14.  
  15.     private $tokenPointer;
  16.  
  17.     public function __construct($message$code 0$pointer){
  18.  
  19.         $this->tokenPointer $pointer;
  20.         parent::__construct($message$code);
  21.     }
  22.  
  23.     /**
  24.     * Returns a pointer to the token which caused the exception.
  25.     * @return int 
  26.     */
  27.     public function getPointer(){
  28.         return $this->tokenPointer;
  29.     }
  30.  
  31. }
  32. ?>

Documentation generated on Fri, 1 Jun 2007 16:52:18 +0200 by phpDocumentor 1.3.2