Class ErrorMessage

java.lang.Object
com.aquima.interactions.foundation.report.ErrorMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ContentErrorMessage

public class ErrorMessage extends Object implements Serializable
This class combines the error code with the parameters to form an actual error message.
Since:
5.1
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ErrorMessage

      protected ErrorMessage(ErrorCode code, String[] parameters)
      Disallowed public construction. ErrorCode object can create the message.
      Parameters:
      code - the error code
      parameters - the parameters
  • Method Details

    • getEnglishMessage

      public String getEnglishMessage()
      This method returns the content of the message.
      Returns:
      the content of the message.
    • getMessage

      public String getMessage(String customText)
      Create a message with the custom language text.
      Parameters:
      customText - the defined text will be inserted with parameters.
      Returns:
      The expanded text string.
    • getParameters

      public String[] getParameters()
      This method returns the parameters for the message.
      Returns:
      the parameters for the message.
    • getCode

      public ErrorCode getCode()
      This method returns the error code for the message.
      Returns:
      the error code for the message.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object