public class IndependentConnectionException
extends java.sql.SQLException
| Constructor and Description |
|---|
IndependentConnectionException(java.lang.String message,
ConnectionParameters attemptedParameters)
Creates a new IndependentConnectionException with a message and connection parameters.
|
IndependentConnectionException(java.lang.String message,
ConnectionParameters attemptedParameters,
java.lang.String connectionAttempt,
java.lang.String failureReason)
Creates a new IndependentConnectionException with detailed context.
|
IndependentConnectionException(java.lang.String message,
java.lang.Throwable cause,
ConnectionParameters attemptedParameters)
Creates a new IndependentConnectionException with a message, cause, and connection parameters.
|
IndependentConnectionException(java.lang.String message,
java.lang.Throwable cause,
ConnectionParameters attemptedParameters,
java.lang.String connectionAttempt,
java.lang.String failureReason)
Creates a new IndependentConnectionException with detailed context and cause.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionParameters |
getAttemptedParameters()
Gets the connection parameters that failed to create a connection.
|
java.lang.String |
getConnectionAttempt()
Gets the description of what connection creation was attempted.
|
java.lang.String |
getFailureReason()
Gets the specific reason for the connection failure.
|
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IndependentConnectionException(java.lang.String message,
ConnectionParameters attemptedParameters)
message - the detailed error messageattemptedParameters - the connection parameters that failed to create a connectionpublic IndependentConnectionException(java.lang.String message,
java.lang.Throwable cause,
ConnectionParameters attemptedParameters)
message - the detailed error messagecause - the underlying cause of the connection failureattemptedParameters - the connection parameters that failed to create a connectionpublic IndependentConnectionException(java.lang.String message,
ConnectionParameters attemptedParameters,
java.lang.String connectionAttempt,
java.lang.String failureReason)
message - the detailed error messageattemptedParameters - the connection parameters that failed to create a connectionconnectionAttempt - description of what connection creation was attemptedfailureReason - specific reason for the connection failurepublic IndependentConnectionException(java.lang.String message,
java.lang.Throwable cause,
ConnectionParameters attemptedParameters,
java.lang.String connectionAttempt,
java.lang.String failureReason)
message - the detailed error messagecause - the underlying cause of the connection failureattemptedParameters - the connection parameters that failed to create a connectionconnectionAttempt - description of what connection creation was attemptedfailureReason - specific reason for the connection failurepublic ConnectionParameters getAttemptedParameters()
public java.lang.String getConnectionAttempt()
public java.lang.String getFailureReason()