|
Sun Adapter for SAG API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.stc.connector.sagadapter.jni.sag.ExcStatus
public class ExcStatus
ExcStatus represents an exception thrown from the JNI layer. Unlike the other JNI-wrapped classes, this class is simply a container for the data in the C++ equivalent ExcStatus class; it does NOT contain a pointer to the original C++ ExcStatus class. There were memory errors associated with instantiating and deleting that class. It is derived from sagappltypes.hpp.
Constructor Summary | |
---|---|
ExcStatus(long token,
int severity,
java.lang.String code,
java.lang.String data,
java.lang.String text,
java.lang.String action)
Creates a new ExcStatus object |
Method Summary | |
---|---|
java.lang.String |
getAction()
Method getAction. |
java.lang.String |
getCode()
Method getCode. |
java.lang.String |
getData()
Method getData. |
java.lang.String |
getMessage()
Concatenates all the various exception fields into a human-readable message |
int |
getSeverity()
Method getSeverity. |
java.lang.String |
getText()
Method getText. |
long |
getToken()
Method getToken |
static void |
throwit(long token,
int severity,
java.lang.String code,
java.lang.String data,
java.lang.String text,
java.lang.String action)
Static method to create and throw an ExcStatus exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExcStatus(long token, int severity, java.lang.String code, java.lang.String data, java.lang.String text, java.lang.String action)
token
- the exception identifierseverity
- the exception severitydata
- exception datatext
- explanation of the error conditionaction
- the action that caused the errorMethod Detail |
---|
public static void throwit(long token, int severity, java.lang.String code, java.lang.String data, java.lang.String text, java.lang.String action) throws ExcStatus
token
- the exception identifierseverity
- the exception severitydata
- exception datatext
- explanation of the error conditionaction
- the action that caused the error
ExcStatus
- the error to be thrownpublic long getToken()
public int getSeverity()
public java.lang.String getCode()
public java.lang.String getData()
public java.lang.String getText()
public java.lang.String getAction()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
Sun Adapter for SAG API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |