Module blind_llama.errors
Functions
def log_errors_and_warnings()
-
Context manager that intercepts AICert errors and warnings and that logs them
Only errors that inherit from AICertClientException are caught. They are used to display a nice error message before cleanly exiting the program. All warnings are caught and logged (and the program continues).
Example usage:
with log_errors_and_warnings(): # Potential errors are logged # and the program is properly terminated function_that_may_fail()
Classes
class AICertException (message: str, *args: object)
-
Generic AICert exception
Ancestors
- builtins.Exception
- builtins.BaseException
Subclasses
class APIKeyException (key, msg)
-
A custom exception class for wrapping API Key verification errors
Ancestors
- builtins.Exception
- builtins.BaseException
class PredictionException (msg)
-
A custom exception class for wrapping predictions errors
Ancestors
- builtins.Exception
- builtins.BaseException
class ValidationError (message: str)
-
Common base class for all non-exit exceptions.
Ancestors
- builtins.Exception
- builtins.BaseException