public class CJException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
protected String |
exceptionMessage
We can't override the
Throwable.detailMessage directly because it has a private accessibility,
thus for that need we use this protected variable and override getMessage() |
private boolean |
isTransient |
private static long |
serialVersionUID |
private String |
SQLState |
private int |
vendorCode |
| Modifier | Constructor and Description |
|---|---|
|
CJException() |
|
CJException(String message) |
|
CJException(String message,
Throwable cause) |
protected |
CJException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
|
CJException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendMessage(String messageToAppend) |
String |
getMessage() |
String |
getSQLState() |
int |
getVendorCode() |
boolean |
isTransient() |
void |
setSQLState(String sQLState) |
void |
setTransient(boolean isTransient) |
void |
setVendorCode(int vendorCode) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate static final long serialVersionUID
protected String exceptionMessage
Throwable.detailMessage directly because it has a private accessibility,
thus for that need we use this protected variable and override getMessage()private String SQLState
private int vendorCode
private boolean isTransient
public CJException()
public CJException(String message)
public CJException(Throwable cause)
public String getSQLState()
public void setSQLState(String sQLState)
public int getVendorCode()
public void setVendorCode(int vendorCode)
public boolean isTransient()
public void setTransient(boolean isTransient)
public String getMessage()
getMessage in class Throwablepublic void appendMessage(String messageToAppend)