(self, message: str, code: str = '400', exception: Optional[Exception] = None)
| 48 | """Custom exception for document parsing errors""" |
| 49 | |
| 50 | def __init__(self, message: str, code: str = '400', exception: Optional[Exception] = None): |
| 51 | super().__init__(message) |
| 52 | self.code = code |
| 53 | self.exception = exception |
| 54 | |
| 55 | |
| 56 | def parse_file_by_idp(file_path: str = None, file_url: str = None) -> List[dict]: |