Class Message


  • public class Message
    extends java.lang.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 Detail

      • getType

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

        public java.nio.file.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 java.lang.String getMessage()
        Returns:
        the message text
      • getCause

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

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