Exceptions#

Common Error Type#

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]