Create an error result.
(cls, command_name: str, error: str)
| 70 | |
| 71 | @classmethod |
| 72 | def error(cls, command_name: str, error: str) -> "CommandResult": |
| 73 | """Create an error result.""" |
| 74 | return cls( |
| 75 | success=False, |
| 76 | command_name=command_name, |
| 77 | result_type="text", |
| 78 | text=f"Error: {error}", |
| 79 | error=error, |
| 80 | display="system", |
| 81 | ) |
| 82 | |
| 83 | @classmethod |
| 84 | def skip(cls, command_name: str) -> "CommandResult": |
no outgoing calls
no test coverage detected