You are here

class EasyRdf_Parser_Exception in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Exception.php \EasyRdf_Parser_Exception

EasyRdf Exception class

All exceptions thrown by EasyRdf are an instance of this class.

@package EasyRdf @copyright Copyright (c) 2013 Nicholas J Humfrey @license http://www.opensource.org/licenses/bsd-license.php

Hierarchy

Expanded class hierarchy of EasyRdf_Parser_Exception

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Exception.php, line 47

View source
class EasyRdf_Parser_Exception extends EasyRdf_Exception {
  protected $parserLine;
  protected $parserColumn;
  public function __construct($message, $line = null, $column = null) {
    $this->parserLine = $line;
    $this->parserColumn = $column;
    if (!is_null($line)) {
      $message .= " on line {$line}";
      if (!is_null($column)) {
        $message .= ", column {$column}";
      }
    }
    parent::__construct($message);
  }
  public function getParserLine() {
    return $this->parserLine;
  }
  public function getParserColumn() {
    return $this->parserColumn;
  }

}

Members