Package org.kie.dmn.api.core
Interface DMNMessage
-
- All Superinterfaces:
org.kie.internal.builder.InternalMessage
,org.kie.api.builder.Message
@GwtIncompatible public interface DMNMessage extends org.kie.internal.builder.InternalMessage
A general message interface for all DMN related messages raised during compilation and execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DMNMessage.Severity
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Throwable
getException()
If this message relates to a java exception, this method returns a reference to the actual Throwable object.FEELEvent
getFeelEvent()
If this message relates to a FEEL compilation or runtime event, this method returns the reference to the actual FEEL event.String
getMessage()
Deprecated.useMessage.getText()
instead.DMNMessageType
getMessageType()
Returns a classification of the event that raised the message.DMNMessage.Severity
getSeverity()
Deprecated.useMessage.getLevel()
instead.String
getSourceId()
Returns the ID of the model element to which this message relates to or null if this message does not refer to a specific model element.Object
getSourceReference()
Returns the actual model element reference to which this message relates to or null if this message does not refer to a specific model element.
-
-
-
Method Detail
-
getSeverity
@Deprecated DMNMessage.Severity getSeverity()
Deprecated.useMessage.getLevel()
instead.Returns the severity of the message. Either TRACE, INFO, WARN or ERROR
-
getMessage
@Deprecated String getMessage()
Deprecated.useMessage.getText()
instead.Returns a human readable text with the explanation of the event that raised the message.
-
getMessageType
DMNMessageType getMessageType()
Returns a classification of the event that raised the message.- Returns:
-
getSourceId
String getSourceId()
Returns the ID of the model element to which this message relates to or null if this message does not refer to a specific model element.- Returns:
-
getSourceReference
Object getSourceReference()
Returns the actual model element reference to which this message relates to or null if this message does not refer to a specific model element.- Returns:
-
getFeelEvent
FEELEvent getFeelEvent()
If this message relates to a FEEL compilation or runtime event, this method returns the reference to the actual FEEL event.- Returns:
-
getException
Throwable getException()
If this message relates to a java exception, this method returns a reference to the actual Throwable object.- Returns:
-
-