19 require_once(BASE.
"wcmf/lib/util/class.Log.php");
25 function gError($message, $file=
'', $line=
'')
27 WCMFWCMFException::throwEx1($message, $file, $line);
49 function throwEx($message, $file=
'', $line=
'')
51 global $EXCEPTION_HANDLER;
52 if (isset($EXCEPTION_HANDLER))
53 $EXCEPTION_HANDLER($message, $file, $line);
57 if ($file !=
'') $str =
' [ '.$file;
58 if ($line !=
'') $str .=
' '.$line;
59 if ($str !=
'') $str .=
' ]';
61 die(
'ERROR'.$str.
': '.$message);
70 $vDebug = debug_backtrace();
72 for ($i=0; $i<count($vDebug); $i++)
78 $vFiles[] =
' -> '.$aFile[
'class'].$aFile[
'type'].$aFile[
'function'].
' (called at '.basename($aFile[
'file']).
':'.$aFile[
'line'].
')';
80 return implode(
"\n", $vFiles);
throwEx($message, $file='', $line='')
gError($message, $file='', $line='')
Use the WCMFException class to handle errors. You need not instantiate a WCMFException object because...
fatal($message, $category)