public final class NetricsErrorItem
extends java.lang.Object
implements java.io.Serializable
These objects are generated by NetricsException objects. For known error item types this provides a means of accessing parsed out items from the detailed information. Which information is available will depend on the error item type.
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_NULL
Indicates this error item contains no information.
|
static int |
TYPE_TRANID
Indicates this error item contains a transaction id.
|
static int |
TYPE_UNKNOWN
Indicates this error item contains uncategorized information.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDetailsMsg()
Return the error details message.
|
int |
getItemType()
Returns the type of the error item, one of NetricsErrorItem.TYPE_*.
|
int |
getTranId()
Return the full transaction id.
|
public static final int TYPE_NULL
public static final int TYPE_UNKNOWN
public static final int TYPE_TRANID
public int getItemType()
The type of the error item will determine which access methods are valid.
public int getTranId()
throws java.lang.IllegalStateException
This is valid only for TYPE_TRANID. If this is not a TYPE_TRANID error item a IllegalStateException is thrown.
java.lang.IllegalStateExceptionpublic java.lang.String getDetailsMsg()
If this error item contains an error details message this returns the message. Otherwise it returns null. This is valid for all error item types.
A detailed error message is returned by many different error cases. The message may be important in helping to debug the cause of an error. When contacting TIBCO about an error any detailed error message in the exception should be reported.