org.opencms.main
Class CmsInitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.opencms.main.CmsRuntimeException
                  extended by 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
Version:
$Revision: 1.21 $
Author:
Alexander Kandzior
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opencms.main.CmsRuntimeException
m_message
 
Constructor Summary
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
 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
 
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

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 use
newError - 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 use
cause - 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 class CmsRuntimeException
Parameters:
container - the message container
cause - 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