ErrorType
public enum ErrorType
Types of errors raised by MangaDexLib
-
The request completed with an unexpected status code
Declaration
Swift
case wrongStatusCode
-
No DDoS-Guard cookie was found in the cookie jar
A DDoS-Guard cookie has to be set before doing any
POST
request. The cookie is automatically set when performing aGET
request, and is kept in between sessionsDeclaration
Swift
case noDdosGuardCookie
-
MangaDex decided that the user needs to solve a captcha before accessing the endpoint
Declaration
Swift
case captchaRequired
-
MangaDex noticed too many requests in a short time period and returned an error
Declaration
Swift
case rateLimited
-
The requests was started before the
MDRequestHandler
entered a ready stateNote
Thanks to the task queue, this should never occureDeclaration
Swift
case notReady
-
The user needs to be authenticated to perform this request
Declaration
Swift
case loginRequired
-
MangaDexLib failed to parse the response returned by the MangaDex API
Declaration
Swift
case decodingError
-
MangaDexLib failed to encode the content of the request
Declaration
Swift
case encodingError
-
This method is not implemented
Declaration
Swift
case notImplemented
-
The performed action failed with an unknown error
Declaration
Swift
case actionFailed