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:
java.io.Serializable
,I_CmsThrowable
public class CmsInitException extends CmsRuntimeException
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.opencms.main.CmsRuntimeException
m_message
-
-
Constructor Summary
Constructors Constructor Description CmsInitException(CmsMessageContainer container)
Creates a new localized Exception.CmsInitException(CmsMessageContainer container, boolean newError)
Creates a new localized Exception.CmsInitException(CmsMessageContainer container, java.lang.Throwable cause)
Creates a new localized Exception that also containes a root cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsRuntimeException
createException(CmsMessageContainer container, java.lang.Throwable cause)
Creates a copied instance of this localized exception.boolean
isNewError()
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
-
-
-
-
Constructor Detail
-
CmsInitException
public CmsInitException(CmsMessageContainer container)
Creates a new localized Exception.- Parameters:
container
- the localized message container to use
-
CmsInitException
public CmsInitException(CmsMessageContainer container, boolean newError)
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
public CmsInitException(CmsMessageContainer container, java.lang.Throwable cause)
Creates a new localized Exception that also containes a root cause.- Parameters:
container
- the localized message container to usecause
- the Exception root cause
-
-
Method Detail
-
createException
public CmsRuntimeException createException(CmsMessageContainer container, java.lang.Throwable cause)
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:
CmsRuntimeException.createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable)
-
isNewError
public boolean 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
-
-