Exceptions#

This section documents all exceptions that pronotepy intentionally raises. All of them extend the PronoteAPIError exception.


class pronotepy.PronoteAPIError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Base exception for any pronote api errors

class pronotepy.CryptoError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Exception for known errors in the cryptography.

class pronotepy.ExpiredObject(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Raised when pronote returns error 22. (unknown object reference)

class pronotepy.ChildNotFound(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Child with this name was not found.

class pronotepy.DataError#

Base exception for any errors made by creating or manipulating data classes.

class pronotepy.ParsingError(message: str, json_dict: dict, path: Tuple[str, ...])#

Bad json

class pronotepy.ICalExportError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Error while exporting ICal. Pronote did not return token

class pronotepy.DateParsingError(message: str, date_string: str)#

Bad date string

class pronotepy.ENTLoginError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Error while logging in with an ENT

class pronotepy.UnsupportedOperation(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

The PRONOTE server does not have the functionality