Inheritance: extends Exception
Exemplo n.º 1
0
function Lisphp_printParsingError(Lisphp_ParsingException $e)
{
    echo $e->getMessage(), "\n";
    $lines = explode("\n", $e->code);
    echo $lines[$e->getLisphpLine() - 1], "\n";
    echo str_repeat(' ', $e->getLisphpColumn() - 1), "^\n";
}
Exemplo n.º 2
0
 public function testFile()
 {
     $this->assertEquals('test.lisphp', $this->exception->getLisphpFile());
     $e = new Lisphp_ParsingException('(echo 1', 7);
     $this->assertEquals('', $e->getLisphpFile());
 }