getTrace(); $this->file = $t[0]['file']; $this->line = $t[0]['line']; } public function __toString() { return 'generalException: "'.$this->message.'" in file "'.$this->file.'" at line '.$this->line."\n"; } public static function get($message = null,$code = null) { throw new generalException($message, $code); } }