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


Field Summary
static int ERROR_STATUS_0
           
static int ERROR_STATUS_1
           
static int ERROR_STATUS_2
           
static int ERROR_STATUS_3
           
static int ERROR_STATUS_FATAL
           
static int ERROR_STATUS_LOG
           
static int ERROR_STATUS_MAJOR
           
static int ERROR_STATUS_MINOR
           
static int PACKAGE_DATA
           
static int PACKAGE_GUI
           
static int PACKAGE_MAIN
           
static int PACKAGE_NET
           
 
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
 

Field Detail

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
Constructor Detail

Log


public Log()
Method Detail

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 package
statusLevel - How severe is this error
class_ - Calling class
method_ - Calling method
comment - 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 error
comment - Comment describing the current error