ClusterJException is the base for all ClusterJ exceptions. Applications can catch ClusterJException to be notified of all ClusterJ reported issues.
-
User exceptions are caused by user error, for example providing a connect string that refers to an unavailable host or port.
If a user exception is detected during bootstrapping (acquiring a SessionFactory), it is thrown as a fatal exception.
com.mysql.clusterj.ClusterJFatalUserExceptionIf an exception is detected during initialization of a persistent interface, for example annotating a column that doesn't exist in the mapped table, it is reported as a user exception.
com.mysql.clusterj.ClusterJUserException
Datastore exceptions report conditions that result from datastore operations after bootstrapping. For example, duplicate keys on insert, or record does not exist on delete.
com.mysql.clusterj.ClusterJDatastoreExceptionInternal exceptions report conditions that are caused by errors in implementation. These exceptions should be reported as bugs.
com.mysql.clusterj.ClusterJFatalInternalException
Exceptions are in three general categories: User exceptions, Datastore exceptions, and Internal exceptions.
public class ClusterJException extends, RuntimeException {
// Public Constructorspublic ClusterJException(String message);public ClusterJException(String message,
Throwable t);public ClusterJException(Throwable t);
// Public Methodspublic synchronized void printStackTrace(PrintStream s);
}
Direct known subclasses:
com.mysql.clusterj.ClusterJDatastoreException
, com.mysql.clusterj.ClusterJFatalException
, com.mysql.clusterj.ClusterJUserException
Methods inherited from
java.lang.Throwable:
addSuppressed
, fillInStackTrace
, getCause
, getLocalizedMessage
, getMessage
, getStackTrace
, getSuppressed
, initCause
, printStackTrace
, setStackTrace
, toString
Methods inherited from
java.lang.Object:
equals
, getClass
, hashCode
, notify
, notifyAll
, wait