Class CoreBaseRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.hybris.platform.sap.core.common.exceptions.CoreBaseRuntimeException
-
- All Implemented Interfaces:
MessageListHolder,java.io.Serializable
- Direct Known Subclasses:
ApplicationBaseRuntimeException,BackendRuntimeException,BORuntimeException,ConfigurationBaseRuntimeException
public class CoreBaseRuntimeException extends java.lang.RuntimeException implements MessageListHolder
Core base runtime exception.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MessageListmessageListContainer for messages.-
Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID
-
-
Constructor Summary
Constructors Constructor Description CoreBaseRuntimeException()Standard constructor for CoreBaseRuntimeException with no detail message.CoreBaseRuntimeException(Message message)Standard constructor for CoreBaseRuntimeException using a message object seeMessagefor details.CoreBaseRuntimeException(MessageList messageList)Standard constructor for CoreBaseRuntimeException using message objects seeMessageListfor details.CoreBaseRuntimeException(MessageList messageList, java.lang.Throwable rootCause)Standard constructor for CoreBaseRuntimeException using message objects seeMessageListfor details.CoreBaseRuntimeException(Message message, java.lang.Throwable rootCause)Standard constructor for CoreBaseRuntimeException using a message object seeMessagefor details.CoreBaseRuntimeException(java.lang.String message)Standard constructor for CoreBaseRuntimeException with the specified detail message.CoreBaseRuntimeException(java.lang.String message, java.lang.Throwable rootCause)Standard constructor for CoreBaseRuntimeException with the specified detail message and root cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(Message message)Add a additional message to the exception.voidclearMessages()Clears all messages in the message list.MessageListgetMessageList()Returns the messages of the Business Object.
-
-
-
Field Detail
-
messageList
protected final MessageList messageList
Container for messages.
-
-
Constructor Detail
-
CoreBaseRuntimeException
public CoreBaseRuntimeException()
Standard constructor for CoreBaseRuntimeException with no detail message.
-
CoreBaseRuntimeException
public CoreBaseRuntimeException(java.lang.String message)
Standard constructor for CoreBaseRuntimeException with the specified detail message.- Parameters:
message- the detail message.
-
CoreBaseRuntimeException
public CoreBaseRuntimeException(java.lang.String message, java.lang.Throwable rootCause)Standard constructor for CoreBaseRuntimeException with the specified detail message and root cause.- Parameters:
message- message text.rootCause- exception which causes the exception
-
CoreBaseRuntimeException
public CoreBaseRuntimeException(Message message)
Standard constructor for CoreBaseRuntimeException using a message object seeMessagefor details.- Parameters:
message- message which identifies the error message.
-
CoreBaseRuntimeException
public CoreBaseRuntimeException(Message message, java.lang.Throwable rootCause)
Standard constructor for CoreBaseRuntimeException using a message object seeMessagefor details.- Parameters:
message- message object which identifies the error message.rootCause- exception which causes the exception
-
CoreBaseRuntimeException
public CoreBaseRuntimeException(MessageList messageList, java.lang.Throwable rootCause)
Standard constructor for CoreBaseRuntimeException using message objects seeMessageListfor details.- Parameters:
messageList- list of message object which identifies the error message.rootCause- exception which causes the exception
-
CoreBaseRuntimeException
public CoreBaseRuntimeException(MessageList messageList)
Standard constructor for CoreBaseRuntimeException using message objects seeMessageListfor details.- Parameters:
messageList- list of message object which identifies the error message.
-
-
Method Detail
-
addMessage
public void addMessage(Message message)
Add a additional message to the exception.- Specified by:
addMessagein interfaceMessageListHolder- Parameters:
message- message object which identifies the error message.
-
clearMessages
public void clearMessages()
Clears all messages in the message list.- Specified by:
clearMessagesin interfaceMessageListHolder
-
getMessageList
public MessageList getMessageList()
Returns the messages of the Business Object.- Specified by:
getMessageListin interfaceMessageListHolder- Returns:
- message list of the
-
-