Source for file SparqlParserException.php

Documentation is available at SparqlParserException.php

  1. <?
  2. // ---------------------------------------------
  3. // class: SparqlParserExecption
  4. // ---------------------------------------------
  5. /**
  6. * A SPARQL Parser Execption for better errorhandling.
  7. *
  8. * <BR><BR>History:<UL>
  9. * <LI>08.09.2005: Initial version</LI>
  10. *
  11. * @author Tobias Gauss <tobias.gauss@web.de>
  12. * @version 0.9.3
  13. *
  14. * @package sparql
  15. */
  16. Class SparqlParserException extends Exception{
  17.  
  18. private $tokenPointer;
  19.  
  20. public function __construct($message, $code = 0, $pointer){
  21.  
  22. $this->tokenPointer = $pointer;
  23. parent::__construct($message, $code);
  24. }
  25.  
  26. /**
  27. * Returns a pointer to the token which caused the exception.
  28. * @return int
  29. */
  30. public function getPointer(){
  31. return $this->tokenPointer;
  32. }
  33.  
  34. }
  35. ?>

Documentation generated on Fri, 13 Jan 2006 07:49:48 +0100 by phpDocumentor 1.3.0RC4