PaP
Class FaultHandler

java.lang.Object
  |
  +--PaP.FaultHandler

public class FaultHandler
extends java.lang.Object

Fault handler


Field Summary
private  BaseFrame bf
          Handle used to report errors
static int Fatal
          Reporting a fatal error
static int Fault
          Reporting an error
private static java.lang.String[] FT
          Textual representation of fault types
static int InfoDebug
          Reporting debug information
static int InfoRuntime
          Reporting just information
 int nReportedFaults
          Number of faults reported
 int reportLevel
          Report level
static int Warning
          Reporting a warning
 
Constructor Summary
FaultHandler(int level, BaseFrame reportTo)
          New instance of fault handler
 
Method Summary
 void faultReport(int faultType, GAI address, java.lang.String cause)
          A new fault reporting
 Item status()
          Status reporting utility to convert all data field values into one Item hierarchy
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

bf

private BaseFrame bf
Handle used to report errors

reportLevel

public int reportLevel
Report level

nReportedFaults

public int nReportedFaults
Number of faults reported

Fatal

public static final int Fatal
Reporting a fatal error

Fault

public static final int Fault
Reporting an error

Warning

public static final int Warning
Reporting a warning

InfoRuntime

public static final int InfoRuntime
Reporting just information

InfoDebug

public static final int InfoDebug
Reporting debug information

FT

private static java.lang.String[] FT
Textual representation of fault types
Constructor Detail

FaultHandler

public FaultHandler(int level,
                    BaseFrame reportTo)
New instance of fault handler
Method Detail

faultReport

public void faultReport(int faultType,
                        GAI address,
                        java.lang.String cause)
A new fault reporting
Parameters:
faultType - Defines type of fault, that is the seriousity
address - Address of the entity reporting the fault
cause - A description of the reason

status

public Item status()
Status reporting utility to convert all data field values into one Item hierarchy
Returns:
Item form of the data field values