/**
  * Constructor
  *
  * @param   string message
  * @param   int type default XML_ERROR_SYNTAX
  * @param   string filename default NULL
  * @param   int linenumber
  * @param   int column
  */
 public function __construct($message, $type = XML_ERROR_SYNTAX, $filename = null, $linenumber = 0, $column = 0)
 {
     parent::__construct($message);
     $this->type = $type;
     $this->filename = $filename;
     $this->linenumber = $linenumber;
     $this->column = $column;
 }
 /**
  * Called when emitting fails
  *
  * @param   xp.compiler.io.Source src
  * @param   lang.FormatException reason
  */
 public function emittingFailed(Source $src, \lang\FormatException $reason)
 {
     $this->writer->writeLine($src, ': ', $reason->compoundMessage());
     $reason->printStackTrace();
 }
 /**
  * Called when emitting fails
  *
  * @param   xp.compiler.io.Source src
  * @param   lang.FormatException reason
  */
 public function emittingFailed(Source $src, \lang\FormatException $reason)
 {
     $this->writer->writeLine('*** @', $src, ':');
     $this->writer->writeLine($reason->compoundMessage());
 }
 /**
  * Called when emitting fails
  *
  * @param   xp.compiler.io.Source src
  * @param   lang.FormatException reason
  */
 public function emittingFailed(Source $src, \lang\FormatException $reason)
 {
     $this->writer->write('E');
     $this->failed++;
     $this->messages[$src->getURI()] = $reason->compoundMessage();
 }