IMessage

public interface IMessage extends Serializable

Interface representing a message on a region in a source file.

Methods

exception

Throwable exception()
Returns:Exception belonging to this message, or null if there is no exception.

message

String message()
Returns:Message text.

region

ISourceRegion region()
Returns:Affected region inside the source, or null if the entire source is affected.

severity

MessageSeverity severity()
Returns:Message severity

source

FileObject source()
Returns:Source of the message, or null if the source is unknown.

type

MessageType type()
Returns:Message type.