Package org.opencms.main
Class CmsInitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opencms.main.CmsRuntimeException
org.opencms.main.CmsInitException
- All Implemented Interfaces:
Serializable
,I_CmsThrowable
Describes errors that occur in the context of OpenCms the initialization, this is fatal
and prevents OpenCms from starting.
If an Exception of this class is thrown, OpenCms is set to an error state and the system won't try to start up again.
- Since:
- 6.0.0
- See Also:
-
Field Summary
Fields inherited from class org.opencms.main.CmsRuntimeException
m_message
-
Constructor Summary
ConstructorDescriptionCmsInitException
(CmsMessageContainer container) Creates a new localized Exception.CmsInitException
(CmsMessageContainer container, boolean newError) Creates a new localized Exception.CmsInitException
(CmsMessageContainer container, Throwable cause) Creates a new localized Exception that also containes a root cause. -
Method Summary
Modifier and TypeMethodDescriptioncreateException
(CmsMessageContainer container, Throwable cause) Creates a copied instance of this localized exception.boolean
Indicates that this exception describes a new error that was not already logged.Methods inherited from class org.opencms.main.CmsRuntimeException
getLocalizedMessage, getLocalizedMessage, getMessage, getMessageContainer
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CmsInitException
Creates a new localized Exception.- Parameters:
container
- the localized message container to use
-
CmsInitException
Creates a new localized Exception.- Parameters:
container
- the localized message container to usenewError
- indicates that the error is new, and OpenCms should be stopped
-
CmsInitException
Creates a new localized Exception that also containes a root cause.- Parameters:
container
- the localized message container to usecause
- the Exception root cause
-
-
Method Details
-
createException
Description copied from class:CmsRuntimeException
Creates a copied instance of this localized exception.- Overrides:
createException
in classCmsRuntimeException
- Parameters:
container
- the message containercause
- the root cause- Returns:
- a copied instance of this localized exception
- See Also:
-
isNewError
Indicates that this exception describes a new error that was not already logged.- Returns:
true
if this exception describes a new error that was not already logged
-