statspost.errors

Module Contents

exception statspost.errors.HttpException(status, message)[source]

Bases: Exception

AsyncDagpi base exception class use this base class to catch any AsyncDagpi errors.

Parameters:
  • status (int) –

  • message (str) –

exception statspost.errors.ApiError(message)[source]

Bases: HttpException

Raised when Fluxpoint has an error it does not know how to handle

Parameters:

message (str) –

exception statspost.errors.WrongReturnType[source]

Bases: Exception

Exception raised when the when wrong return type is given

exception statspost.errors.Unauthorised(message)[source]

Bases: HttpException

Raised for an API 401

Parameters:

message (str) –

exception statspost.errors.RateLimited(message)[source]

Bases: HttpException

You are exceeding the API’s rate limits and built in Ratelimit handler Essentially a 429

Parameters:

message (str) –

exception statspost.errors.ParameterError(message)[source]

Bases: HttpException

Parameters passed were not Sufficient

Parameters:

message (str) –

exception statspost.errors.NoBotListData[source]

Bases: Exception

No botlist data provided