initial import

This commit is contained in:
Alchemy
2011-02-16 16:09:48 +01:00
parent 399a584b6f
commit 339d23c06d
5539 changed files with 2028637 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
<?php
class generalException extends Exception
{
public function __construct($message, $code=0)
{
parent::__construct($message,$code);
$t = $this->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);
}
}