MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.ClusterJException Class Reference
Inheritance diagram for com.mysql.clusterj.ClusterJException:

Public Member Functions

 ClusterJException (String message)
 ClusterJException (String message, Throwable t)
 ClusterJException (Throwable t)
synchronized void printStackTrace (java.io.PrintStream s)

Detailed Description

ClusterJException is the base for all ClusterJ exceptions. Applications can catch ClusterJException to be notified of all ClusterJ reported issues.

Exceptions are in three general categories: User exceptions, Datastore exceptions, and Internal exceptions.

  • 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. ClusterJFatalUserException
    • If 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. 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. ClusterJDatastoreException
  • Internal exceptions report conditions that are caused by errors in implementation. These exceptions should be reported as bugs. ClusterJFatalInternalException

Definition at line 47 of file ClusterJException.java.


The documentation for this class was generated from the following file: