Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

MySQL NDB Cluster API Developer Guide  /  ...  /  ClusterJDatastoreException.Classification

4.3.1.3 ClusterJDatastoreException.Classification

Helper class for getClassification(). import com.mysql.clusterj.ClusterJDatastoreException.Classification; Classification c = Classification.lookup(datastoreException.getClassification()); System.out.println("exceptionClassification " + c + " with value " + c.value);

4.3.1.3.1 Synopsis
 public static final class ClusterJDatastoreException.Classification extends, Enum<Classification> {
// Public Static Fields  public static final Classification ApplicationError ;
  public static final Classification ConstraintViolation ;
  public static final Classification FunctionNotImplemented ;
  public static final Classification InsufficientSpace ;
  public static final Classification InternalError ;
  public static final Classification InternalTemporary ;
  public static final Classification NoDataFound ;
  public static final Classification NoError ;
  public static final Classification NodeRecoveryError ;
  public static final Classification NodeShutdown ;
  public static final Classification OverloadError ;
  public static final Classification SchemaError ;
  public static final Classification SchemaObjectExists ;
  public static final Classification TemporaryResourceError ;
  public static final Classification TimeoutExpired ;
  public static final Classification UnknownErrorCode ;
  public static final Classification UnknownResultError ;
  public static final Classification UserDefinedError ;
// Public Static Methods  public static Classification lookup(int value);
  public static Classification valueOf(String name);
  public static Classification[] values();
}

Methods inherited from java.lang.Enum: compareTo , equals , getDeclaringClass , hashCode , name , ordinal , toString , valueOf

Methods inherited from java.lang.Object: getClass , notify , notifyAll , wait

Since

7.3.15, 7.4.13, 7.5.4

4.3.1.3.2 lookup(int)
public static Classification lookup(int value);

Get the Classification enum for a value returned by ClusterJDatastoreException.getClassification().

Table 4.4 lookup(int)

Parameter Description
value the classification returned by getClassification()
return the Classification for the error


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.