Log error, store it, and dispatch HANDLE_ERROR trigger. Args: error_message: The error message to log and display to the user.
(self, error_message: str)
| 102 | self.machine = machine |
| 103 | |
| 104 | def dispatch_error(self, error_message: str): |
| 105 | """Log error, store it, and dispatch HANDLE_ERROR trigger. |
| 106 | |
| 107 | Args: |
| 108 | error_message: The error message to log and display to the user. |
| 109 | """ |
| 110 | console.error(error_message) |
| 111 | self.last_error_message = error_message |
| 112 | self.machine.dispatch(triggers.HANDLE_ERROR) |
| 113 | |
| 114 | def create_snapshot(self) -> RenderContextSnapshot: |
| 115 | return RenderContextSnapshot( |
no test coverage detected