Documentation Home
MySQL NDB Cluster API Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 3.7Mb
PDF (A4) - 3.7Mb


4.3.1.2 ClusterJDatastoreException

ClusterJUserException represents a database error. The underlying cause of the exception is contained in the "cause".

4.3.1.2.1 Synopsis
 public class ClusterJDatastoreException extends, ClusterJException {
// Public Constructors  public 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 Methods  public static ClusterJDatastoreException forSchemaChange(Object obj);
  public static ClusterJDatastoreException forSchemaChange(String msg,
                                                           int code,
                                                           Throwable cause);

// Public Methods  public 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

4.3.1.2.2 canRetry()
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

4.3.1.2.3 getClassification()
public int getClassification();

Get the classification

4.3.1.2.4 getCode()
public int getCode();

Get the code

Since

7.3.15, 7.4.13, 7.5.4

4.3.1.2.5 getMysqlCode()
public int getMysqlCode();

Get the mysql code

Since

7.3.15, 7.4.13, 7.5.4

4.3.1.2.6 getStatus()
public int getStatus();

Get the status

4.3.1.2.7 isStaleMetadata()
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.

4.3.1.2.8 tableNotFound()
public boolean tableNotFound();

tableNotFound()

Table 4.5 tableNotFound()

Parameter Description
return true if the error is a "Table Not Found" condition

Since

9.4.0