Package org.apache.geode.connectors.jdbc
Class JdbcConnectorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.geode.GemFireException
org.apache.geode.cache.CacheRuntimeException
org.apache.geode.connectors.jdbc.JdbcConnectorException
- All Implemented Interfaces:
Serializable
An exception thrown when communication with an external JDBC data source fails and can be used
to diagnose the cause of database communication failures. In cases where the cause of this
exception is not safe to serialize to clients, the stack trace is included in the message of the
exception and the cause is left empty.
- Since:
- Geode 1.5
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcConnectorExceptionCreate a new JdbcConnectorException by first checking to see if the causing exception is or contains an exception that potentially could not be deserialized by remote systems receiving the serialized exception.static JdbcConnectorExceptioncreateException(String message, Exception e) Create a new JdbcConnectorException by first checking to see if the causing exception is or contains an exception that potentially could not be deserialized by remote systems receiving the serialized exception.Methods inherited from class org.apache.geode.cache.CacheRuntimeException
toStringMethods inherited from class org.apache.geode.GemFireException
getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
JdbcConnectorException
-
-
Method Details
-
createException
Create a new JdbcConnectorException by first checking to see if the causing exception is or contains an exception that potentially could not be deserialized by remote systems receiving the serialized exception.- Parameters:
e- cause of this Exception- Returns:
- a new JdbcConnectorException containing either the causing exception, if it can be serialized/deserialized by Geode, or containing the causing exception stack trace in its message if not
-
createException
Create a new JdbcConnectorException by first checking to see if the causing exception is or contains an exception that potentially could not be deserialized by remote systems receiving the serialized exception.- Parameters:
message- message of this Exceptione- cause of this Exception- Returns:
- a new JdbcConnectorException containing either the causing exception, if it can be serialized/deserialized by Geode, or containing the causing exception stack trace in its message if not
-