|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.opencms.main.CmsException
org.opencms.main.CmsResourceInitException
public class CmsResourceInitException
This exeption is thrown by a class which implements org.opencms.main.I_CmsResourceInit. When this exeption is thrown, all other implementations of I_CmsResourceInit will not be executed.
| Field Summary |
|---|
| Fields inherited from class org.opencms.main.CmsException |
|---|
m_message |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.opencms.main.CmsException |
|---|
getFormattedErrorstack, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageContainer, getStackTraceAsString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmsResourceInitException(java.lang.Class<? extends I_CmsResourceInit> cls)
cls - the resource init handler classpublic CmsResourceInitException(CmsMessageContainer container)
container - the localized message container to use
public CmsResourceInitException(CmsMessageContainer container,
java.lang.Throwable cause)
container - the localized message container to usecause - the Exception root cause| Method Detail |
|---|
public CmsException createException(CmsMessageContainer container,
java.lang.Throwable cause)
CmsException
createException in class CmsExceptioncontainer - the message containercause - the root cause
CmsException.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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||