| 256 | |
| 257 | |
| 258 | class RobotExitException(Exception): |
| 259 | def __init__(self, message="Safe exit triggered", details=None): |
| 260 | super().__init__(message) |
| 261 | self.message = message |
| 262 | self.details = details |
| 263 | |
| 264 | def __str__(self): |
| 265 | if self.details: |
| 266 | return f"{self.message}: {self.details}" |
| 267 | return self.message |
| 268 | pass |
| 269 | |
| 270 | |
| 271 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected