public class ExceptionFactory extends Object
| Modifier and Type | Field | Description |
|---|---|---|
private static long |
DEFAULT_WAIT_TIMEOUT_SECONDS |
|
private static int |
DUE_TO_TIMEOUT_FALSE |
|
private static int |
DUE_TO_TIMEOUT_MAYBE |
|
private static int |
DUE_TO_TIMEOUT_TRUE |
| Constructor | Description |
|---|---|
ExceptionFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
static CJCommunicationsException |
createCommunicationsException(PropertySet propertySet,
ServerSession serverSession,
PacketSentTimeHolder packetSentTimeHolder,
PacketReceivedTimeHolder packetReceivedTimeHolder,
Throwable cause,
ExceptionInterceptor interceptor) |
|
static <T extends CJException> |
createException(Class<T> clazz,
String message) |
|
static <T extends CJException> |
createException(Class<T> clazz,
String message,
ExceptionInterceptor interceptor) |
|
static <T extends CJException> |
createException(Class<T> clazz,
String message,
Throwable cause) |
|
static <T extends CJException> |
createException(Class<T> clazz,
String message,
Throwable cause,
ExceptionInterceptor interceptor) |
|
static CJException |
createException(String message) |
|
static CJException |
createException(String message,
ExceptionInterceptor interceptor) |
|
static CJException |
createException(String message,
String sqlState,
int vendorErrorCode,
boolean isTransient,
Throwable cause,
ExceptionInterceptor interceptor) |
|
static CJException |
createException(String message,
Throwable cause) |
|
static CJException |
createException(String message,
Throwable cause,
ExceptionInterceptor interceptor) |
|
static String |
createLinkFailureMessageBasedOnHeuristics(PropertySet propertySet,
ServerSession serverSession,
PacketSentTimeHolder packetSentTimeHolder,
PacketReceivedTimeHolder packetReceivedTimeHolder,
Throwable underlyingException) |
Creates a communications link failure message to be used in CommunicationsException
that (hopefully) has some better information and suggestions based on heuristics.
|
private static final long DEFAULT_WAIT_TIMEOUT_SECONDS
private static final int DUE_TO_TIMEOUT_FALSE
private static final int DUE_TO_TIMEOUT_MAYBE
private static final int DUE_TO_TIMEOUT_TRUE
public static CJException createException(String message)
public static <T extends CJException> T createException(Class<T> clazz, String message)
public static CJException createException(String message, ExceptionInterceptor interceptor)
public static <T extends CJException> T createException(Class<T> clazz, String message, ExceptionInterceptor interceptor)
T - CJExceptionclazz - exception classmessage - messageinterceptor - exception interceptorCJException instancepublic static CJException createException(String message, Throwable cause)
public static <T extends CJException> T createException(Class<T> clazz, String message, Throwable cause)
public static CJException createException(String message, Throwable cause, ExceptionInterceptor interceptor)
public static CJException createException(String message, String sqlState, int vendorErrorCode, boolean isTransient, Throwable cause, ExceptionInterceptor interceptor)
public static <T extends CJException> T createException(Class<T> clazz, String message, Throwable cause, ExceptionInterceptor interceptor)
T - CJExceptionclazz - exception classmessage - messagecause - exception caused this oneinterceptor - exception interceptorCJException instancepublic static CJCommunicationsException createCommunicationsException(PropertySet propertySet, ServerSession serverSession, PacketSentTimeHolder packetSentTimeHolder, PacketReceivedTimeHolder packetReceivedTimeHolder, Throwable cause, ExceptionInterceptor interceptor)
public static String createLinkFailureMessageBasedOnHeuristics(PropertySet propertySet, ServerSession serverSession, PacketSentTimeHolder packetSentTimeHolder, PacketReceivedTimeHolder packetReceivedTimeHolder, Throwable underlyingException)
propertySet - property setserverSession - server sessionpacketSentTimeHolder - packetSentTimeHolderpacketReceivedTimeHolder - packetReceivedTimeHolderunderlyingException - underlyingException