Class Message

java.lang.Object
org.codehaus.plexus.build.messages.Message

public class Message extends Object
Represents a message with all its parameters. This class holds the collected parameters for a message that can be created through the MessageBuilder.
  • Method Details

    • getType

      public MessageType getType()
      Returns:
      the message type
    • getPath

      public Path getPath()
      Returns:
      the file path
    • getLine

      public int getLine()
      Returns:
      the line number (1-based, 0 for unknown)
    • getColumn

      public int getColumn()
      Returns:
      the column number (1-based, 0 for unknown)
    • getMessage

      public String getMessage()
      Returns:
      the message text
    • getCause

      public Throwable getCause()
      Returns:
      the exception cause, or null if none
    • toString

      public String toString()
      Returns a string representation of this message. The format is: path [line:column]: message
      Overrides:
      toString in class Object
      Returns:
      the formatted message string