public class CmsDbSqlException extends CmsDbException
m_message
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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, getStackTraceAsString
public 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 CmsException createException(CmsMessageContainer container, java.lang.Throwable cause)
CmsException
createException
in class CmsDbException
container
- the message containercause
- the root causeCmsException.createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable)
public static java.lang.String getErrorQuery(java.sql.Statement stmt)
stmt
- the Statement to get the crashed query from