ClusterJUserException represents a database error. The underlying cause of the exception is contained in the "cause".
public class ClusterJDatastoreException extends, ClusterJException {
// Public Constructorspublic ClusterJDatastoreException(String message);
public ClusterJDatastoreException(String msg,
int code,
int mysqlCode,
int status,
int classification);public ClusterJDatastoreException(String message,
Throwable t);public ClusterJDatastoreException(Throwable t);
// Public Static Methodspublic static ClusterJDatastoreException forSchemaChange(Object obj);
public static ClusterJDatastoreException forSchemaChange(String msg,
int code,
Throwable cause);
// Public Methodspublic void awaitSchemaChange();
public boolean canRetry();
public int getClassification();
public int getCode();
public int getMysqlCode();
public int getStatus();
public boolean isSchemaChangePending();
public boolean isStaleMetadata();
public ClusterJDatastoreException setRetriable();
public boolean tableNotFound();
}
Direct known subclasses:
com.mysql.clusterj.ClusterJTableException
Methods inherited from
com.mysql.clusterj.ClusterJException:
printStackTrace
Methods inherited from
java.lang.Throwable:
addSuppressed
, fillInStackTrace
, getCause
, getLocalizedMessage
, getMessage
, getStackTrace
, getSuppressed
, initCause
, setStackTrace
, toString
Methods inherited from
java.lang.Object:
equals
, getClass
, hashCode
, notify
, notifyAll
, wait
public boolean canRetry();
canRetry()
Table 4.4 canRetry()
Parameter | Description |
---|---|
return | true if the error is an Ndb temporary error, and the operation can be retried. |
- Since
9.4.0
public boolean isStaleMetadata();
isStaleMetadata() returns true if the exception was caused by stale metadata encountered while attempting to perform a data operation. On true, the user should call session.unloadSchema() to refresh the metadata, then retry.