function __construct($message)
 {
     parent::__construct();
     $trace = $this->getTrace();
     $this->setFile($trace[0]['file']);
     $this->setLine($trace[0]['line']);
     $this->setMessage('<h1>System Error</h1>' . $message);
 }
 function __construct($filename)
 {
     parent::__construct();
     $trace = $this->getTrace();
     $this->setFile($trace[0]['file']);
     $this->setLine($trace[0]['line']);
     $this->setMessage('<h1>FileNotFoundException</h1>File not found : ' . $filename);
 }
 function __construct($in, $classname)
 {
     parent::__construct($in);
     $classname_seg = explode('/', $classname);
     $class = $classname_seg[count($classname_seg) - 1];
     $trace = $this->getTrace();
     $this->setFile($trace[1]['file']);
     $this->setLine($trace[1]['line']);
     $this->setMessage('<h1>ClassNotFoundException</h1>Class not found : ' . $class);
 }