function Error($msg) { if ($this->debug !== false && $lvl == null && method_exists($this->debug, 'runtimeException')) { $this->debug->runtimeException($msg); } else { parent::Error($msg); } }