Class ComposerErrorMessage
java.lang.Object
com.aquima.interactions.composer.model.ComposerErrorMessage
- All Implemented Interfaces:
IMessage
,Serializable
This class holds an error or warning message for a field or page.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionComposerErrorMessage
(String source, IMultilingualText text) Construct an ErrorMessage with isError = true.ComposerErrorMessage
(String source, IMultilingualText text, boolean isWarning) Constructs the message with a text object and a boolean indicating if the message is a warning or an error.ComposerErrorMessage
(String source, IMultilingualText text, Throwable trace, boolean isWarning) Constructs the message with a text object and a boolean indicating if the message is a warning or an error. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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.toString()
-
Constructor Details
-
ComposerErrorMessage
Construct an ErrorMessage with isError = true.- Parameters:
source
- The object/rule sending the error message.text
- The text object containing the content of the message.
-
ComposerErrorMessage
Constructs the message with a text object and a boolean indicating if the message is a warning or an error.- Parameters:
source
- The object/rule sending the error message.text
- The text object containing the content of the message.isWarning
- Boolean indicating if the message is a warning.
-
ComposerErrorMessage
public ComposerErrorMessage(String source, IMultilingualText text, Throwable trace, boolean isWarning) Constructs the message with a text object and a boolean indicating if the message is a warning or an error.- Parameters:
source
- The object/rule sending the error message.text
- The text object containing the content of the message.trace
- The cause of the message.isWarning
- Boolean indicating if the message is a warning.
-
-
Method Details
-
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. -
equals
-
hashCode
public int hashCode() -
toString
-