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.ICalExportError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#
Error while exporting ICal. Pronote did not return token