Common Error Type

Error

class hondana.errors.Error[source]

Common Error type class representing an error returned from MangaDex.

error_id

The UUID representing this error.

Type:

str

error_status

The HTTP status code of this error.

Type:

int

error_title

The title summary of this error.

Type:

str

error_detail

The detailed report of this error.

Type:

str

AuthenticationRequired

exception hondana.AuthenticationRequired[source]

An exception to be raised when authentication is required to use this endpoint.

APIException

exception hondana.APIException[source]

Generic API error when the response code is a non 2xx error.

response

The response object pertaining to this request.

Type:

aiohttp.ClientResponse

status_code

The HTTP status code for this request.

Type:

int

response_id

The UUID relating to this failed HTTP request. This is to be used when contacting MangaDex about an error.

Type:

str

errors

The list of errors returned from MangaDex.

Type:

List[Error]

NotFound

exception hondana.NotFound[source]

An error for when the requested API item was not found.”

response

The response object pertaining to this request.

Type:

aiohttp.ClientResponse

status_code

The HTTP status code for this request.

Type:

Literal[404]

response_id

The UUID relating to this failed HTTP request. This is to be used when contacting MangaDex about an error.

Type:

str

errors

The list of errors returned from MangaDex.

Type:

List[Error]

BadRequest

exception hondana.BadRequest[source]

An error for when the API query was malformed.

response

The response object pertaining to this request.

Type:

aiohttp.ClientResponse

status_code

The HTTP status code for this request.

Type:

Literal[400]

response_id

The UUID relating to this failed HTTP request. This is to be used when contacting MangaDex about an error.

Type:

str

errors

The list of errors returned from MangaDex.

Type:

List[Error]

Unauthorized

exception hondana.Unauthorized[source]

An error for when you are unauthorized on this API endpoint.

response

The response object pertaining to this request.

Type:

aiohttp.ClientResponse

status_code

The HTTP status code for this request.

Type:

Literal[401]

response_id

The UUID relating to this failed HTTP request. This is to be used when contacting MangaDex about an error.

Type:

str

errors

The list of errors returned from MangaDex.

Type:

List[Error]

Forbidden

exception hondana.Forbidden[source]

An error for when your authorization was rejected.

response

The response object pertaining to this request.

Type:

aiohttp.ClientResponse

status_code

The HTTP status code for this request.

Type:

Literal[403]

response_id

The UUID relating to this failed HTTP request. This is to be used when contacting MangaDex about an error.

Type:

str

errors

The list of errors returned from MangaDex.

Type:

List[Error]

MangaDexServerError

exception hondana.MangaDexServerError[source]

Generic exception type for when MangaDex is down.

response

The response object pertaining to this request.

Type:

aiohttp.ClientResponse

status_code

The HTTP status code for this request.

Type:

int

PreviousAPIVersionRequest

exception hondana.PreviousAPIVersionRequest[source]

An error for when the API query matches the criteria of an older API version.

response

The response object pertaining to this request.

Type:

aiohttp.ClientResponse

status_code

The HTTP status code for this request.

Type:

Literal[400]

response_id

The UUID relating to this failed HTTP request. This is to be used when contacting MangaDex about an error.

Type:

str

errors

The list of errors returned from MangaDex.

Type:

List[Error]

RefreshTokenFailure

exception hondana.RefreshTokenFailure[source]

An exception to be raised when trying to use or access the refresh token fails.

Attriutes

message: str

The error message.

response: aiohttp.ClientResponse

The client response the error originated from.

data: Dict[str, Any]

The data from the error.

TermsOfServiceNotAccepted

exception hondana.TermsOfServiceNotAccepted[source]

An error for when the ToS is not accepted prior to a chapter upload.

UploadInProgress

exception hondana.UploadInProgress[source]

An exception to be raised when an upload in progress is already found for the logged-in user.

message

The message returned with this error.

Type:

class:str

session_id

The already existing session ID.

Type:

str