Class JdbcConnectorException

All Implemented Interfaces:
Serializable

public class JdbcConnectorException extends CacheRuntimeException
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 Details

    • JdbcConnectorException

      public JdbcConnectorException(String message)
  • Method Details

    • createException

      public static JdbcConnectorException createException(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.
      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

      public static JdbcConnectorException createException(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.
      Parameters:
      message - message of this Exception
      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