Errors

Warning

This is a WIP section.

The base class for all of the module exceptions is cforces.errors.CodeforcesException

exception cforces.errors.CodeforcesException

Bases: Exception

exception cforces.errors.GenericAPIError(param: str, comment: str | None, exc_text: str | None = None)

Bases: CodeforcesException

param: str
comment: str | None
exception cforces.errors.APIRequestLimitExceeded(param: str, maximum: int)

Bases: GenericAPIError

maximum: int
exception cforces.errors.BlogEntryNotFound(param: str, entry_id: int)

Bases: GenericAPIError

id: int
exception cforces.errors.ContestHasNotStarted(param: str, contest_id: int)

Bases: GenericAPIError

id
exception cforces.errors.InvalidParameter(param: str, expected: str)

Bases: GenericAPIError

param: str
comment: str | None
exception cforces.errors.InvalidParticipantType(param: str, participant_type: str)

Bases: GenericAPIError

type: str
exception cforces.errors.NotAContestManager(param: str)

Bases: GenericAPIError

param: str
comment: str | None
exception cforces.errors.OneIndexed(param: str, comment: str | None, exc_text: str | None = None)

Bases: GenericAPIError

param: str
comment: str | None
exception cforces.errors.ProblemSetNotFound(param: str, problemset_name: str)

Bases: GenericAPIError

name: str
exception cforces.errors.RequiredFieldMissing(param: str)

Bases: GenericAPIError

param: str
comment: str | None
exception cforces.errors.UserNotFound(param: str, user: str)

Bases: GenericAPIError

user: str
exception cforces.errors.UserUnauthorized(param: str)

Bases: GenericAPIError

param: str
comment: str | None
cforces.errors.api_error(comments: str) ExceptionGroup[GenericAPIError]