Class LogMessage


  • public class LogMessage
    extends Object
    The LogMessage class stores the data of a log entry.
    • Constructor Detail

      • LogMessage

        public LogMessage​(String text,
                          boolean isError)
        Constructs a new LogMessage object.
        Parameters:
        text - the text of the message
        isError - true if the message describes an error, otherwise false
    • Method Detail

      • getText

        public String getText()
        Gets the text of the message.
        Returns:
        the text of the message
      • isError

        public boolean isError()
        Checks whether the message describes an error.
        Returns:
        true if the message describes an error, otherwise false