diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-05-24 14:55:11 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-05-24 14:55:11 +0200 |
commit | d48be01fff31a7a9d611802721aa70532d251c3a (patch) | |
tree | 53ac39214a27855a6521f91ea448e39ffcd7866b /src/ParseCompileError.php | |
parent | 3c51baa4167d5a68ff010dc81525b9340c5f1329 (diff) | |
download | ste-d48be01fff31a7a9d611802721aa70532d251c3a.tar.gz ste-d48be01fff31a7a9d611802721aa70532d251c3a.tar.bz2 ste-d48be01fff31a7a9d611802721aa70532d251c3a.zip |
Moved to src/ste for psr-4 compliance1.0.0
Diffstat (limited to 'src/ParseCompileError.php')
-rw-r--r-- | src/ParseCompileError.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/ParseCompileError.php b/src/ParseCompileError.php deleted file mode 100644 index 5ee37c7..0000000 --- a/src/ParseCompileError.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -namespace kch42\ste; - -class ParseCompileError extends \Exception { - public $msg; - public $tpl; - public $off; - - public function __construct($msg, $tpl, $offset, $code = 0, $previous = NULL) { - $this->msg = $msg; - $this->tpl = $tpl; - $this->off = $offset; - $this->message = "$msg (Template $tpl, Offset $offset)"; - } - - public function rewrite($code) { - $line = substr_count(str_replace("\r\n", "\n", substr($code, 0, $this->off)), "\n") + 1; - $this->message = "{$this->msg} (Template {$this->tpl}, Line $line)"; - $this->is_rewritten = true; - } -} |