public class CmsRuntimeException extends java.lang.RuntimeException implements I_CmsThrowable
RuntimeException
to obtain fully
localized exception messages for OpenCms.限定符和类型 | 字段和说明 |
---|---|
protected CmsMessageContainer |
m_message
The container for the localized message.
|
构造器和说明 |
---|
CmsRuntimeException(CmsMessageContainer message)
Creates a new localized Exception.
|
CmsRuntimeException(CmsMessageContainer message,
java.lang.Throwable cause)
Creates a new localized Exception that also containes a root cause.
|
限定符和类型 | 方法和说明 |
---|---|
CmsRuntimeException |
createException(CmsMessageContainer container,
java.lang.Throwable cause)
Creates a copied instance of this localized exception.
|
java.lang.String |
getLocalizedMessage()
Returns a localized exception message based on the OpenCms default locale.
|
java.lang.String |
getLocalizedMessage(java.util.Locale locale)
Returns a localized exception message based on the given Locale.
|
java.lang.String |
getMessage()
Returns a localized exception message based on the OpenCms default locale.
|
CmsMessageContainer |
getMessageContainer()
Returns the localized message container used to build this localized exception.
|
protected CmsMessageContainer m_message
public CmsRuntimeException(CmsMessageContainer message)
message
- the localized message container to usepublic CmsRuntimeException(CmsMessageContainer message, java.lang.Throwable cause)
message
- the localized message container to usecause
- the Exception root causepublic CmsRuntimeException createException(CmsMessageContainer container, java.lang.Throwable cause)
container
- the message containercause
- the root causepublic java.lang.String getLocalizedMessage()
I_CmsThrowable
getLocalizedMessage
在接口中 I_CmsThrowable
getLocalizedMessage
在类中 java.lang.Throwable
I_CmsThrowable.getLocalizedMessage()
public java.lang.String getLocalizedMessage(java.util.Locale locale)
I_CmsThrowable
getLocalizedMessage
在接口中 I_CmsThrowable
locale
- the Locale to get the message forI_CmsThrowable.getLocalizedMessage(Locale)
public java.lang.String getMessage()
I_CmsThrowable
getMessage
在接口中 I_CmsThrowable
getMessage
在类中 java.lang.Throwable
Throwable.getMessage()
public CmsMessageContainer getMessageContainer()
I_CmsThrowable
getMessageContainer
在接口中 I_CmsThrowable
I_CmsThrowable.getMessageContainer()