Package com.senzing.g2.engine
Interface G2Fallible
-
- All Known Subinterfaces:
G2Audit,G2Config,G2ConfigMgr,G2Diagnostic,G2Engine,G2Product,G2SSAdmin
- All Known Implementing Classes:
G2AuditJNI,G2ConfigJNI,G2ConfigMgrJNI,G2DiagnosticJNI,G2JNI,G2ProductJNI,G2SSAdminJNI
public interface G2FallibleProvides a base interface for Senzing native SDK's can have failures occur.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearLastException()Clears the information about the last error the system received.StringgetLastException()Returns a string about the last error the system received.intgetLastExceptionCode()Returns the exception code of the last error the system received.
-
-
-
Method Detail
-
getLastException
String getLastException()
Returns a string about the last error the system received. This is most commonly called after an API function returns an error code (non-zero or NULL)- Returns:
- An error message
-
getLastExceptionCode
int getLastExceptionCode()
Returns the exception code of the last error the system received. This is most commonly called after an API function returns an error code (non-zero or NULL)- Returns:
- An error code
-
clearLastException
void clearLastException()
Clears the information about the last error the system received.
-
-