Mindee Errors
- exception GeometryError
An error related to geometry operations.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args
- exception MimeTypeError
The MIME Type is not valid.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args
- exception MindeeClientError
An exception relating to document parsing errors.
Not to be confused with MindeeHTTPClientError.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args
- exception MindeeError
A generic exception relating to various HTTP errors.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args
- exception MindeeHTTPClientError(http_error, url, code)
API Client HTTP exception.
- Parameters:
http_error (Dict[str, Any]) –
url (str) –
code (int) –
- Return type:
None
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
api_code:
str
-
api_details:
str
-
api_message:
str
- args
-
status_code:
int
- exception MindeeHTTPError(http_error, url, code)
An exception relating to HTTP calls.
- Parameters:
http_error (Dict[str, Any]) –
url (str) –
code (int) –
- Return type:
None
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
api_code:
str
-
api_details:
str
-
api_message:
str
- args
-
status_code:
int
- exception MindeeHTTPServerError(http_error, url, code)
API Server HTTP exception.
- Parameters:
http_error (Dict[str, Any]) –
url (str) –
code (int) –
- Return type:
None
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
api_code:
str
-
api_details:
str
-
api_message:
str
- args
-
status_code:
int
- exception MindeeProductError
An exception relating to the use of an incorrect product/version.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args
- handle_error(url, response)
Creates an appropriate HTTP error exception, based on retrieved HTTP error code.
- Parameters:
url (
str
) – url of the productresponse (
Dict
[str
,Any
]) – StringDict
- Return type: