Initialize command execution error. Args: message: Error message command: Command name that failed cause: Original exception that caused this error
(
self, message: str, command: str | None = None, cause: Exception | None = None
)
| 42 | """Command execution failed.""" |
| 43 | |
| 44 | def __init__( |
| 45 | self, message: str, command: str | None = None, cause: Exception | None = None |
| 46 | ): |
| 47 | """ |
| 48 | Initialize command execution error. |
| 49 | |
| 50 | Args: |
| 51 | message: Error message |
| 52 | command: Command name that failed |
| 53 | cause: Original exception that caused this error |
| 54 | """ |
| 55 | self.cause = cause |
| 56 | super().__init__(message, command) |
| 57 | |
| 58 | |
| 59 | class CommandNotFoundError(CommandError): |