NotificationType#

class ansys.tools.common.notifications.NotificationType#

Bases: str, enum.Enum

Notification type / type of the notification.

Controls the visual appearance of the notification (colour, icon, sound) where the target channel supports it.

Using a str enum means the values map directly to apprise NotifyType constants.

Overview#

INFO

Informational message (default). Neutral appearance.

SUCCESS

Positive outcome. Typically shown in green.

WARNING

Something requires attention. Typically shown in yellow/orange.

FAILURE

An error or critical problem. Typically shown in red.

Import detail#

from ansys.tools.common.notifications import NotificationType

Attribute detail#

NotificationType.INFO = 'info'#

Informational message (default). Neutral appearance.

NotificationType.SUCCESS = 'success'#

Positive outcome. Typically shown in green.

NotificationType.WARNING = 'warning'#

Something requires attention. Typically shown in yellow/orange.

NotificationType.FAILURE = 'failure'#

An error or critical problem. Typically shown in red.