Class EventError
java.lang.Object
com.aquima.interactions.portal.model.session.EventError
- All Implemented Interfaces:
IMessage
,IErrorMessage
,Serializable
This object hold a single error that was encountered during the processing of the event.
- Since:
- 5.1
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventError
(RuntimeKey elementId, ValueReference reference, String source, IMultilingualText message, Throwable cause, boolean isError) -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns the ID of the element that generated the error/warning.This method returns the object causing this message to be created.getText()
This method returns a text object containing the actual content of the message.getTrace()
This method returns the cause of the error or warning message.This method returns the attribute reference the message is defined for.int
hashCode()
boolean
isError()
This method returns a boolean indicating if the message is an error message.boolean
This method returns a boolean indicating if the message is a warning message.void
setMessage
(IMultilingualText text) protected void
setOrigin
(IFieldValidation fieldValidation) protected void
setRejectedValue
(Serializable rejectedValue) toString()
-
Constructor Details
-
EventError
public EventError(RuntimeKey elementId, ValueReference reference, String source, IMultilingualText message, Throwable cause, boolean isError)
-
-
Method Details
-
getOrigin
-
setOrigin
-
setMessage
-
setRejectedValue
-
getRejectedValue
-
getValueReference
Description copied from interface:IErrorMessage
This method returns the attribute reference the message is defined for. For global error or warning messages, this method will return a null value.- Specified by:
getValueReference
in interfaceIErrorMessage
- Returns:
- the attribute reference the message is defined for.
-
getText
Description copied from interface:IMessage
This method returns a text object containing the actual content of the message. -
getTrace
Description copied from interface:IMessage
This method returns the cause of the error or warning message. -
isError
public boolean isError()Description copied from interface:IMessage
This method returns a boolean indicating if the message is an error message. -
isWarning
public boolean isWarning()Description copied from interface:IMessage
This method returns a boolean indicating if the message is a warning message. -
getSource
Description copied from interface:IMessage
This method returns the object causing this message to be created. -
getElementId
Description copied from interface:IErrorMessage
This method returns the ID of the element that generated the error/warning.- Specified by:
getElementId
in interfaceIErrorMessage
- Returns:
- the ID of the element that generated the error/warning.
-
hashCode
public int hashCode() -
equals
-
toString
-