This class stores event information. It can be initialized in four distinct ways. It includes nine methods:
It also defines four constants:
Constructors
The object can be initialized in four distinct ways:
With a business document
public EventInfo(int eventCode, BusinessDocumentInterface document, String[] params)
With a business document and an exception or error
public EventInfo(int eventCode, BusinessDocumentInterface document, String[] params, Throwable t)
With a document UUID
public EventInfo(int eventCode, String documentUUID, String[] params)
With a document UUID and an error or exception
public EventInfo(int eventCode, String documentUUID, String[] params, Throwable t)
Method
getEventCode
Method description
Retrieves the event code
Syntax
public int getEventCode()
Parameters
None
Method
getBusinessDocument
Method description
Retrieves the business document
Syntax
public BusinessDocument getBusinessDocument()
Parameters
None
Method
getDocumentUUID
Method description
Retrieves the document UUID
Syntax
public String getDocumentUUID
Parameters
None
Method
getParams
Method description
Retrieves the parameter array
Syntax
public String[] getParams()
Parameters
None
Method
getStackTrace
Method description
Retrieves the stack trace
Syntax
public Throwable getStackTrace()
Parameters
None
Method
getSourceClass
Method description
Retrieves the source class
Syntax
public String getSourceClass()
Parameters
None
Method
setSourceClass
Method description
Sets the source class
Syntax
public void setSourceClass(String sourceClass)
Parameters
Method
setFaultType
Method description
Sets the fault type. See Constants below.
Syntax
public void setFaultType(String faultType)
Parameters
Method
getFaultType
Method description
Retrieves the fault type. See Constants below.
Syntax
public String getFaultType()
Parameters
None
Constants
These constants are used to define fault types:
public static final String FAULTTYPE_UNKNOWN = "0" public static final String FAULTTYPE_SOURCE = "1" public static final String FAULTTYPE_TARGET = "2" public static final String FAULTTYPE_SYSTEM = "3"