add_error_message#

AedtLogger.add_error_message(message_text, level=None)#

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_logger.error("Project Error Message", "Project")