| 86 | |
| 87 | |
| 88 | class EngineError(PystackError): |
| 89 | def __init__( |
| 90 | self, |
| 91 | *args: Any, |
| 92 | corefile: Optional[pathlib.Path] = None, |
| 93 | pid: Optional[int] = None, |
| 94 | **kwargs: Any, |
| 95 | ) -> None: |
| 96 | self.corefile = corefile |
| 97 | self.pid = pid |
| 98 | super().__init__(*args, **kwargs) |
| 99 | |
| 100 | def __str__(self) -> str: |
| 101 | message, *_ = self.args |
| 102 | return f"Engine error: {message}" |
| 103 | |
| 104 | |
| 105 | class ProcessNotFound(PystackError, ProcessLookupError): |
no outgoing calls