Class Message
- java.lang.Object
-
- org.codehaus.plexus.build.messages.Message
-
public class Message extends java.lang.ObjectRepresents a message with all its parameters. This class holds the collected parameters for a message that can be created through the MessageBuilder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()intgetColumn()intgetLine()java.lang.StringgetMessage()java.nio.file.PathgetPath()MessageTypegetType()java.lang.StringtoString()Returns a string representation of this message.
-
-
-
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:
toStringin classjava.lang.Object- Returns:
- the formatted message string
-
-