|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.gene.messages.Message
public final class Message
A single message. Immutable.
Field Summary | |
---|---|
Throwable |
cause
Exception that caused the message, may be null . |
String |
message
A short informative message, displayed to the user. |
MessageSeverityEnum |
severity
Message severity. |
Constructor Summary | |
---|---|
Message(MessageSeverityEnum severity,
String message,
Throwable cause)
Constructor. |
Method Summary | |
---|---|
void |
log()
Logs this message into the Eclipse's log. |
static Message |
valueOf(DOMError err)
Converts the DOMError instance to a message. |
static Message |
valueOf(IStatus status)
Converts the Eclipse status instance to a message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final MessageSeverityEnum severity
public final String message
public final Throwable cause
null
.
Constructor Detail |
---|
public Message(MessageSeverityEnum severity, String message, Throwable cause)
severity
- message severity.message
- a short informative message, displayed to the user.cause
- exception that caused the message, may be null
.Method Detail |
---|
public void log()
public static Message valueOf(DOMError err)
err
- the error.
public static Message valueOf(IStatus status)
status
- the status.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |