Class ErrorMessage
java.lang.Object
com.aquima.interactions.foundation.report.ErrorMessage
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ContentErrorMessage
This class combines the error code with the parameters to form an actual error message.
- Since:
- 5.1
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ErrorMessage
(ErrorCode code, String[] parameters) Disallowed public construction. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
This method returns the error code for the message.This method returns the content of the message.getMessage
(String customText) Create a message with the custom language text.String[]
This method returns the parameters for the message.int
hashCode()
-
Constructor Details
-
ErrorMessage
Disallowed public construction. ErrorCode object can create the message.- Parameters:
code
- the error codeparameters
- the parameters
-
-
Method Details
-
getEnglishMessage
This method returns the content of the message.- Returns:
- the content of the message.
-
getMessage
Create a message with the custom language text.- Parameters:
customText
- the defined text will be inserted with parameters.- Returns:
- The expanded text string.
-
getParameters
This method returns the parameters for the message.- Returns:
- the parameters for the message.
-
getCode
This method returns the error code for the message.- Returns:
- the error code for the message.
-
equals
-
hashCode
public int hashCode()
-