schrodinger.infra.exception_handler_dir.exception_dialog module

class schrodinger.infra.exception_handler_dir.exception_dialog.ExceptionDialog(msg_html, exception_msg, *, show_ignore=True)

Bases: PyQt6.QtWidgets.QDialog

A dialog for showing exceptions to users

__init__(msg_html, exception_msg, *, show_ignore=True)
Parameters
  • msg_html (str) – The message formatted as html

  • msg_plaintext (str) – The message formatted as plaintext

  • show_ignore (bool) – Whether to show the ignore checkbox

copyToClipboard()

Copy the text (as plaintext) currently displayed into the clipboard.

ignoreCheckboxChanged(checked)

Callback that synchronizes the selection state of the ignore_checkbox with the bool, self.ignore_in_future

Parameters

state – whether the checkbox is checked

linkFollowed(link)

Callback that shows the back_button if the file link is followed

Parameters

link (QtCore.QUrl) – The link that was clicked

backClicked()

Callback that hides the back_button and resets the error text