Class Message

java.lang.Object
org.somox.common.Message

public class Message extends Object
This class provides a data object for message encapsulation. It can be used to create more structures messages especially if messages with variable levels have to be supported.
  • Constructor Details

    • Message

      public Message(Message.MessageLevel level, String message, Throwable throwable)
      Constructor requiring all information
    • Message

      public Message(Message.MessageLevel level, String message)
      Constructor requiring common information
    • Message

      public Message(String message)
      Constructor requiring minimum information. This will result in an info message.
  • Method Details

    • setMessage

      public void setMessage(String message)
      Parameters:
      message - the message to set
    • getMessage

      public String getMessage()
      Returns:
      the message
    • setLevel

      public void setLevel(Message.MessageLevel level)
      Parameters:
      level - the level to set
    • getLevel

      public Message.MessageLevel getLevel()
      Returns:
      the level
    • setThrowable

      public void setThrowable(Throwable throwable)
      Parameters:
      throwable - the throwable to set
    • getThrowable

      public Throwable getThrowable()
      Returns:
      the throwable