(self)
| 25 | return f"{ERROR_TYPE_BASE}/{self.code.lower().replace('_', '-')}" |
| 26 | |
| 27 | def to_dict(self) -> Dict[str, Any]: |
| 28 | return { |
| 29 | "type": self.type, |
| 30 | "code": self.code, |
| 31 | "title": self.title, |
| 32 | "detail": self.detail, |
| 33 | "suggestion": self.suggestion, |
| 34 | "status": self.status, |
| 35 | "retryable": self.retryable, |
| 36 | "diagnostics": self.diagnostics, |
| 37 | } |
| 38 | |
| 39 | def to_message(self) -> str: |
| 40 | if self.suggestion: |
no outgoing calls
no test coverage detected