add_error_message

AEDTMessageManager.add_error_message(message_text, level=None)[source]

Add a type 2 “Error” message to the Message Manager tree.

Also add an error message to the logger if the handler is present.

Parameters
message_textstr

Text to display as the error message.

levelstr, optional

Level to add the error message to. Options are "Global", "Project", and "Design". The default is None, in which case the error message gets added to the "Design" level.

Examples

Add an error message to the AEDT Message Manager.

>>> hfss.logger.project.error("Project Error Message", "Project")