User`s guide

12 Classes – Alphabetical List
12-112
A session-unique ID is generated as part of document element creation. You can specify
an ID to replace the generated ID.
Source — Source object from which the message originates
a DOM object
Source DOM object from which the message originates.
Tag — Tag for document element
string
Tag for document element, specified as a string.
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Text — Text of message
string
Message text, specified as a string.
Methods
Use ErrorMessage methods similar to how you use ProgressMessage methods.
Method Purpose
formatAsHTML Format message as HTML.
formatAsText Format message as text.
passesFilter Determine whether message passes filter.
Examples
Create an Error Message
import mlreportgen.dom.*;