Class CoreBaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.hybris.platform.sap.core.common.exceptions.CoreBaseException
- All Implemented Interfaces:
MessageListHolder,Serializable
- Direct Known Subclasses:
ApplicationBaseException,BackendException,BusinessObjectException,DataHubTransferException,JCoMonitorException,SAPHybrisCacheException,SAPHybrisCacheException,SAPS4OMHybrisCacheException
Core base exception class.
- See Also:
-
Field Summary
FieldsFields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID -
Constructor Summary
ConstructorsConstructorDescriptionStandard constructor for CoreBaseException with no detail message.CoreBaseException(Message message) Standard constructor for CoreBaseException using a message object seeMessagefor details.CoreBaseException(MessageList messageList) Standard constructor for CoreBaseException using message objects seeMessageListfor details.CoreBaseException(MessageList messageList, Throwable rootCause) Standard constructor for CoreBaseException using message objects seeMessageListfor details.CoreBaseException(Message message, Throwable rootCause) Standard constructor for CoreBaseException using a message object seeMessagefor details.CoreBaseException(String message) Standard constructor for CoreBaseException with the specified detail message.CoreBaseException(String message, Throwable rootCause) Standard constructor for CoreBaseException using a simple message text. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(Message message) Add a additional message to the exception.voidClears all messages in the message list.Returns the messages of the Business Object.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
messageList
Container for messages.
-
-
Constructor Details
-
CoreBaseException
public CoreBaseException()Standard constructor for CoreBaseException with no detail message. -
CoreBaseException
Standard constructor for CoreBaseException with the specified detail message.- Parameters:
message- the detail message.
-
CoreBaseException
Standard constructor for CoreBaseException using a simple message text.- Parameters:
message- message text.rootCause- exception which causes the exception
-
CoreBaseException
Standard constructor for CoreBaseException using a message object seeMessagefor details.- Parameters:
message- message which identifies the error message.
-
CoreBaseException
Standard constructor for CoreBaseException using a message object seeMessagefor details.- Parameters:
message- message object which identifies the error message.rootCause- exception which causes the exception
-
CoreBaseException
Standard constructor for CoreBaseException using message objects seeMessageListfor details.- Parameters:
messageList- list of message object which identifies the error message.rootCause- exception which causes the exception
-
CoreBaseException
Standard constructor for CoreBaseException using message objects seeMessageListfor details.- Parameters:
messageList- list of message object which identifies the error message.
-
-
Method Details
-
addMessage
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
Returns the messages of the Business Object.- Specified by:
getMessageListin interfaceMessageListHolder- Returns:
- message list of the
-