synapsi.error
Class Log
java.lang.Object
|
+--synapsi.error.Log
- public class Log
- extends java.lang.Object
Class log is responsiple for printing error messages from different packages
Constructor Summary |
Log()
|
Method Summary |
static void |
ErrorReport(int pack,
int statusLevel,
java.lang.String class_,
java.lang.String method_,
java.lang.String comment)
Function prints error report(currently to stdout)
This version uses params received for printing. |
static void |
ErrorReport(int statusLevel,
java.lang.String comment)
Function prints error report(currently to stdout).
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ERROR_STATUS_0
public static final int ERROR_STATUS_0
ERROR_STATUS_1
public static final int ERROR_STATUS_1
ERROR_STATUS_2
public static final int ERROR_STATUS_2
ERROR_STATUS_3
public static final int ERROR_STATUS_3
ERROR_STATUS_LOG
public static final int ERROR_STATUS_LOG
ERROR_STATUS_MINOR
public static final int ERROR_STATUS_MINOR
ERROR_STATUS_MAJOR
public static final int ERROR_STATUS_MAJOR
ERROR_STATUS_FATAL
public static final int ERROR_STATUS_FATAL
PACKAGE_MAIN
public static final int PACKAGE_MAIN
PACKAGE_GUI
public static final int PACKAGE_GUI
PACKAGE_DATA
public static final int PACKAGE_DATA
PACKAGE_NET
public static final int PACKAGE_NET
Log
public Log()
ErrorReport
public static void ErrorReport(int pack,
int statusLevel,
java.lang.String class_,
java.lang.String method_,
java.lang.String comment)
- Function prints error report(currently to stdout)
This version uses params received for printing. So output from here could containg errors also
- Parameters:
pack
- Calling packagestatusLevel
- How severe is this errorclass_
- Calling classmethod_
- Calling methodcomment
- Comment describing the current error
ErrorReport
public static void ErrorReport(int statusLevel,
java.lang.String comment)
- Function prints error report(currently to stdout).
This version uses dumpStack method so the caller does not have to identify itself.
- Parameters:
statusLevel
- How severe is this errorcomment
- Comment describing the current error