You are here

public function EasyRdf_Parser_Exception::__construct 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::__construct()

File

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

Class

EasyRdf_Parser_Exception
EasyRdf Exception class

Code

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);
}