Message

public class Message extends Exception implements Comparable<Message>, ToElementable

Fields

type

protected final String type

Constructors

Message

public Message(String type, String description, String body)

Message

public Message(String type, MessageCode code)

Message

public Message(MessageCode code, String description)

Message

public Message(MessageType type, MessageCode code, String description)

Message

public Message(MessageType type, MessageCode code, String description, String body)

Message

public Message(String type, MessageCode code, String description)

Message

public Message(MessageType type, String description)

Message

public Message(String type, MessageCode code, String description, String body)

Message

public Message(MessageCode code, String description, String body, MessageType type)

Message

public Message(String string)

Methods

addToElement

public void addToElement(Element parent)

compareTo

public int compareTo(Message o)

equals

public boolean equals(Object obj)

getBody

public final String getBody()

getCode

public MessageCode getCode()

getDescription

public final String getDescription()

getMessage

public String getMessage()

getType

public final String getType()

hashCode

public int hashCode()

init

static void init()

toElement

public Element toElement()

toString

public String toString()