public class MessageImpl extends java.lang.Object implements Message
Message
.Modifier and Type | Field and Description |
---|---|
protected @NotNull Tree[] |
criticalPoints
The critical points.
|
protected @NotNull java.lang.String |
errorKind
The error kind.
|
protected @Nullable java.lang.Throwable |
exception
The exception.
|
protected boolean |
fetal
True, if the error is fetal.
|
protected @NotNull java.lang.String |
messagePhrase
The message phrase.
|
protected @NotNull java.lang.String |
priority
The message priority.
|
protected @NotNull Tree[] |
stackTrace
The stack trace.
|
Constructor and Description |
---|
MessageImpl(@NotNull java.lang.String messagePhrase,
@NotNull Memory memory,
@NotNull java.lang.String priority,
@NotNull java.lang.String errorKind,
boolean fetal,
Tree... criticalPoints)
Construct a new message.
|
MessageImpl(@NotNull java.lang.String messagePhrase,
@NotNull java.lang.String priority,
@NotNull java.lang.String errorKind,
boolean fetal,
Tree... criticalPoints)
Construct a new message.
|
MessageImpl(@NotNull java.lang.Throwable exception,
@NotNull Memory memory,
@NotNull java.lang.String priority,
@NotNull java.lang.String errorKind,
boolean fetal,
Tree... criticalPoints)
Construct a new message.
|
MessageImpl(@NotNull java.lang.Throwable exception,
@NotNull java.lang.String priority,
@NotNull java.lang.String errorKind,
boolean fetal,
Tree... criticalPoints)
Construct a new message.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Tree[] |
getCriticalPoints()
Return the critical points trees that caused the error represented by this
message.
|
@NotNull java.lang.String |
getErrorKind()
Return the kind of the error of this message.
|
@Nullable java.lang.Throwable |
getException()
Return the exception caused this message.
|
@NotNull java.lang.String |
getMessagePhrase()
Return the message phrase.
|
@NotNull java.lang.String |
getPriority()
Return the priority of this message.
|
@NotNull Tree[] |
getStackTrace()
Return the trace of the error.
|
boolean |
isFetal()
Return
true if this message represent a fetal (unrecoverable) error. |
@NotNull protected final @NotNull Tree[] criticalPoints
@NotNull protected final @NotNull java.lang.String errorKind
@Nullable protected final @Nullable java.lang.Throwable exception
protected final boolean fetal
@NotNull protected final @NotNull java.lang.String messagePhrase
@NotNull protected final @NotNull java.lang.String priority
@NotNull protected final @NotNull Tree[] stackTrace
public MessageImpl(@NotNull @NotNull java.lang.Throwable exception, @NotNull @NotNull java.lang.String priority, @NotNull @NotNull java.lang.String errorKind, boolean fetal, @Nullable Tree... criticalPoints)
exception
- the exception the construction will represent.priority
- the priority of the constructed message.errorKind
- the kind of the error.fetal
- true, if the error is a fetal error.criticalPoints
- the critical points where the exception concurred.java.lang.NullPointerException
- if the given exception
or priority
or
errorKind
or criticalPoints
is null.public MessageImpl(@NotNull @NotNull java.lang.String messagePhrase, @NotNull @NotNull java.lang.String priority, @NotNull @NotNull java.lang.String errorKind, boolean fetal, @Nullable Tree... criticalPoints)
messagePhrase
- the message phrase of the constructed message.priority
- the priority of the constructed message.errorKind
- the kind of the error.fetal
- true, if the error is a fetal error.criticalPoints
- the critical points where the exception concurred.java.lang.NullPointerException
- if the given messagePhrase
or priority
or errorKind
or criticalPoints
is
null.public MessageImpl(@NotNull @NotNull java.lang.Throwable exception, @NotNull @NotNull Memory memory, @NotNull @NotNull java.lang.String priority, @NotNull @NotNull java.lang.String errorKind, boolean fetal, @Nullable Tree... criticalPoints)
exception
- the exception the construction will represent.memory
- the memory at the time of the occurrence of the error.priority
- the priority of the constructed message.errorKind
- the kind of the error.fetal
- true, if the error is a fetal error.criticalPoints
- the critical points where the exception concurred.java.lang.NullPointerException
- if the given exception
or memory
or
priority
or errorKind
or criticalPoints
is null.public MessageImpl(@NotNull @NotNull java.lang.String messagePhrase, @NotNull @NotNull Memory memory, @NotNull @NotNull java.lang.String priority, @NotNull @NotNull java.lang.String errorKind, boolean fetal, @Nullable Tree... criticalPoints)
messagePhrase
- the message phrase of the constructed message.memory
- the memory at the time of the occurrence of the error.priority
- the priority of the constructed message.errorKind
- the kind of the error.fetal
- true, if the error is a fetal error.criticalPoints
- the critical points where the exception concurred.java.lang.NullPointerException
- if the given messagePhrase
or memory
or priority
or errorKind
or criticalPoints
is null.@NotNull public @NotNull Tree[] getCriticalPoints()
Message
getCriticalPoints
in interface Message
@NotNull public @NotNull java.lang.String getErrorKind()
Message
getErrorKind
in interface Message
@Nullable public @Nullable java.lang.Throwable getException()
Message
getException
in interface Message
null
if none.@NotNull public @NotNull java.lang.String getMessagePhrase()
Message
getMessagePhrase
in interface Message
@NotNull public @NotNull java.lang.String getPriority()
Message
getPriority
in interface Message
@NotNull public @NotNull Tree[] getStackTrace()
Message
getStackTrace
in interface Message