public class CmsResourceInitException extends CmsException
m_message
构造器和说明 |
---|
CmsResourceInitException(java.lang.Class<? extends I_CmsResourceInit> cls)
Creates a resource init exception for a given resource init handler class.
|
CmsResourceInitException(CmsMessageContainer container)
Creates a new localized Exception.
|
CmsResourceInitException(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.
|
boolean |
isClearErrors()
If this method returns true, the
OpenCmsCore.initResource(org.opencms.file.CmsObject, String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
method should just return null instead of throwing an exception. |
void |
setClearErrors(boolean clearErrors)
Sets the 'clear errors' flag, which causes the resource init method catching this exception to return null of throwing an exception.
|
getFormattedErrorstack, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageContainer, getStackTraceAsString
public CmsResourceInitException(java.lang.Class<? extends I_CmsResourceInit> cls)
cls
- the resource init handler classpublic CmsResourceInitException(CmsMessageContainer container)
container
- the localized message container to usepublic CmsResourceInitException(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
在类中 CmsException
container
- the message containercause
- the root causeCmsException.createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable)
public boolean isClearErrors()
OpenCmsCore.initResource(org.opencms.file.CmsObject, String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
method should just return null instead of throwing an exception.public void setClearErrors(boolean clearErrors)
clearErrors
- the new value of the 'clear errors' flag