This functionality is only available for certain module packages.

You are here: Reference > SCRIPTING > General methods > Recommended methods of the UserMessageCollector > addWarning(CauseType causeType, Object reportingInstance, String causeObjectID, String topic, String message, Throwable cause)

addWarning(CauseType causeType, Object reportingInstance, String causeObjectID, String topic, String message, Throwable cause)

Adds to the UMC a warning of the causeType type of the reportingInstance object with the topic title and the message text message. If the message was caused by an exception, this cause is passed with cause.

addWarning(CauseType causeType, Object reportingInstance, String causeObjectID, String topic, String message, Throwable cause)
Argument CauseType causeType Message type.
CauseType.LIBRARY = appears in the Console and the Message log view.
CauseType.PROJECT = appears in the Console and the Message log view. In addition, a message window opens that displays the message by way of a Form-UI.
Object reportingInstance The object causing the error and/or reporting the error.
String causeObjectID Currently null; is set aside for future extensions.
String topic The message title. Is used both as the title in the message window and the identifier for the logger.
String message The message text.
Throwable cause If the message was caused by an exception, the exception can be stored here.
Return value Boolean true or false