sssd_test_framework.misc.errors
Exceptions
|
Expect script error. |
- exception sssd_test_framework.misc.errors.ExpectScriptError(code: int, msg: str | None = None)
Bases:
ExceptionExpect script error.
Seeing this exception means that there is an unhandled path or other error in the expect script that was executed. The script needs to be fixed.
- Parameters:
code (int) – Expect script error code.
msg (str | None, optional) – Error message, defaults to None (translate error code to message)
- code_to_message(code: int) str
Translate expect script error codes used in this framework to message.
- Parameters:
code (int) – Expect script error code.
- Returns:
Error message.
- Return type:
str