Exceptions¶
This section outlines the exceptions you may encounter.
HTTP Exceptions¶
-
class
lol.
BadRequest
[source]¶ Raised when a bad request was sent.
-
code
¶ The HTTP code of the error.
Type: int
-
message
¶ The message associated with the error.
Type: str
-
Raised when you are unauthorized to perform an action.
The HTTP code of the error.
Type: int
The message associated with the error.
Type: str
-
class
lol.
Forbidden
[source]¶ Raised when you are forbidden to perform an action. This may also be raised when your token is invalid.
-
code
¶ The HTTP code of the error.
Type: int
-
message
¶ The message associated with the error.
Type: str
-
-
class
lol.
DataNotFound
[source]¶ Raised when the requested data could not be found/does not exist.
-
code
¶ The HTTP code of the error.
Type: int
-
message
¶ The message associated with the error.
Type: str
-
-
class
lol.
MethodNotAllowed
[source]¶ Raised when the request’s method isn’t allowed for that endpoint.
-
code
¶ The HTTP code of the error.
Type: int
-
message
¶ The message associated with the error.
Type: str
-
-
class
lol.
UnsupportedMediaType
[source]¶ Raised when that media type is unsupported for that endpoint.
-
code
¶ The HTTP code of the error.
Type: int
-
message
¶ The message associated with the error.
Type: str
-
-
class
lol.
RateLimitExceeded
[source]¶ Raised when you have exceeded the rate limit.
-
code
¶ The HTTP code of the error.
Type: int
-
message
¶ The message associated with the error.
Type: str
-
-
class
lol.
InternalServerError
[source]¶ Raised when the remote server incurred an error processing your request.
-
code
¶ The HTTP code of the error.
Type: int
-
message
¶ The message associated with the error.
Type: str
-
-
class
lol.
BadGateway
[source]¶ Raised when there is a problem with the gateway.
-
code
¶ The HTTP code of the error.
Type: int
-
message
¶ The message associated with the error.
Type: str
-
Raised when the service is currently unavailable.
The HTTP code of the error.
Type: int
The message associated with the error.
Type: str