diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-05-24 14:45:13 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-05-24 14:45:13 +0200 |
commit | 3c51baa4167d5a68ff010dc81525b9340c5f1329 (patch) | |
tree | 87dbb507a20a8946f93ea8b26a1a784d5eec62ea /ParseCompileError.php | |
parent | 9f86139b7604ea782a35e09bf9d0c55154197051 (diff) | |
download | ste-3c51baa4167d5a68ff010dc81525b9340c5f1329.tar.gz ste-3c51baa4167d5a68ff010dc81525b9340c5f1329.tar.bz2 ste-3c51baa4167d5a68ff010dc81525b9340c5f1329.zip |
Moved code into src subfolder and fixed docu
Diffstat (limited to 'ParseCompileError.php')
-rw-r--r-- | ParseCompileError.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ParseCompileError.php b/ParseCompileError.php deleted file mode 100644 index 5ee37c7..0000000 --- a/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; - } -} |