public function HandleError($errNo, $errStr, $errFile, $errLine, $errContext)
 {
     if (!isset($_REQUEST['typ'])) {
         $_REQUEST['typ'] = 'html';
     }
     $debug_str = '<ul>';
     foreach (debug_backtrace() as $debug) {
         if ($debug['class'] != '') {
             $debug_str = '<li>' . $debug['file'] . ' (' . $debug['line'] . '): ' . $debug['class'] . '::' . $debug['function'] . '()</li>' . $debug_str;
         } else {
             $debug_str = '<li>' . $debug['file'] . ' (' . $debug['line'] . '): ' . $debug['function'] . '()</li>' . $debug_str;
         }
     }
     $debug_str .= '</ul>';
     $errType = $this->mErrorType[$errNo];
     // adding error info into $GLOBALS
     $GLOBALS['error_info'] = array('errtype' => $errType, 'errstr' => $errStr, 'errfile' => $errFile, 'errline' => $errLine, 'errcontext' => $errContext, 'debugstr' => $debug_str);
     require_once Configuration::Instance()->GetValue('application', 'gtfw_base') . 'main/lib/gtfw/response/ResponseIntf.class.php';
     require_once Configuration::Instance()->GetValue('application', 'gtfw_base') . 'main/lib/gtfw/response/' . $_REQUEST['typ'] . '/' . ucfirst($_REQUEST['typ']) . 'Response.class.php';
     require_once Configuration::Instance()->GetValue('application', 'gtfw_base') . 'main/lib/gtfw/response/' . $_REQUEST['typ'] . '/ErrorResponse.class.php';
     $error_response = new ErrorResponse();
     $error_response->Send();
     die;
 }