Mindee Errors

exception MimeTypeError

The MIME Type is not valid.

add_note()

Exception.add_note(note) – add a note to the exception

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.

add_note()

Exception.add_note(note) – add a note to the exception

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.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception MindeeGeometryError

An error related to geometry operations.

add_note()

Exception.add_note(note) – add a note to the exception

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

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

api_code: str | None
api_details: str | None
api_message: str | None
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

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

api_code: str | None
api_details: str | None
api_message: str | None
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

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

api_code: str | None
api_details: str | None
api_message: str | None
args
status_code: int
exception MindeeImageError

An exception relating to errors during image operations.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception MindeePDFError

An exception relating to errors during PDF operations.

add_note()

Exception.add_note(note) – add a note to the exception

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 product

  • response (dict[str, Any]) – StringDict

Return type:

MindeeHTTPError