Raised when the Grobid service fails to process a document.
| 26 | |
| 27 | |
| 28 | class GrobidServiceError(RuntimeError): |
| 29 | """Raised when the Grobid service fails to process a document.""" |
| 30 | |
| 31 | def __init__(self, message="Grobid service error", status_code=None): |
| 32 | super().__init__(message) |
| 33 | self.status_code = status_code |
| 34 | |
| 35 | |
| 36 | def get_span_start(type, title=None): |
no outgoing calls