1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/lib/CodeException.php
2016-01-07 18:37:07 -05:00

23 lines
492 B
PHP

<?php
namespace CodeInspector;
class CodeException extends \Exception
{
const CODE_EXCEPTION = 1;
public $line_number;
public function __construct($message, $file_name, $line_number, $code = self::CODE_EXCEPTION, \Exception $previous = null)
{
$this->line_number = $line_number;
$this->file_name = $file_name;
parent::__construct($message, $code, $previous);
}
public function getSourceLine()
{
return $this->line_number;
}
}