public class CmsDbSqlException extends CmsDbException
m_message| 构造器和说明 |
|---|
CmsDbSqlException(CmsMessageContainer container)
Creates a new localized Exception.
|
CmsDbSqlException(CmsMessageContainer container,
java.lang.Throwable cause)
Creates a new localized Exception that also containes a root cause.
|
| 限定符和类型 | 方法和说明 |
|---|---|
CmsException |
createException(CmsMessageContainer container,
java.lang.Throwable cause)
Creates a copied instance of this localized exception.
|
static java.lang.String |
getErrorQuery(java.sql.Statement stmt)
Returns the query that let the statement crash.
|
getFormattedErrorstack, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageContainer, getStackTraceAsStringpublic CmsDbSqlException(CmsMessageContainer container)
container - the localized message container to usepublic CmsDbSqlException(CmsMessageContainer container, java.lang.Throwable cause)
container - the localized message container to usecause - the Exception root causepublic static java.lang.String getErrorQuery(java.sql.Statement stmt)
stmt - the Statement to get the crashed query frompublic CmsException createException(CmsMessageContainer container, java.lang.Throwable cause)
CmsExceptioncreateException 在类中 CmsDbExceptioncontainer - the message containercause - the root causeCmsException.createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable)