maxon.GraphMessageInterface¶
Description¶
A graph message is an error or warning message to tell the user about issues found in the graph.
A graph attribute which has one of
maxon.GraphAttributeInterface.FLAGS.ERROR
,
maxon.GraphAttributeInterface.FLAGS.WARNING
set can produce such messages via
the method GraphAttributeInterface.GetMessages()
.To query for messages use
GraphNode.GetMessages()
.Methods Signature¶
|
Formats this message in a user-friendly way. |
|
Returns the flags of this message, either |
Returns the origin of the message.
|
Methods Definition¶
-
GraphMessageInterface.
Format
()¶ Formats this message in a user-friendly way.
- Returns
A human-readable message.
- Return type
str
-
GraphMessageInterface.
GetFlags
()¶ Returns the flags of this message, either
maxon.GraphAttributeInterface.FLAGS.ERROR
,maxon.GraphAttributeInterface.FLAGS.WARNING
or both.- Returns
Message flags.
- Return type
-
GraphMessageInterface.
GetOrigin
()¶ - Returns the origin of the message.The graph model implementation may propagate a message along connections, for example to make a message for a nested node visible at the outside of a group. In such cases the origin tells where the message originates.
- Return type
- Returns
The origin of the message.