Convert an Exception into a failure document for publishing.
(exception: Exception)
| 137 | |
| 138 | |
| 139 | def _convert_exception(exception: Exception) -> dict[str, Any]: |
| 140 | """Convert an Exception into a failure document for publishing.""" |
| 141 | return {"errmsg": str(exception), "errtype": exception.__class__.__name__} |
| 142 | |
| 143 | |
| 144 | def _convert_client_bulk_exception(exception: Exception) -> dict[str, Any]: |
no outgoing calls
no test coverage detected