hpcman.exceptions
Exceptions potentially raised for all submodules
Each submodule may have its own exceptions.py file as well.
Classes
CommandNotImplemented
Exception raised when a command is not implemented
Bases: NotImplementedError
Source code in hpcman/hpcman/exceptions.py
| class CommandNotImplemented(NotImplementedError):
"""Exception raised when a command is not implemented"""
pass
|
Functions
handle_validation_errors
def handle_validation_errors(
e: ValidationError,
print_error: bool = True
) -> None
Source code in hpcman/hpcman/exceptions.py
| def handle_validation_errors(e: ValidationError, print_error: bool = True) -> None:
if print_error:
rprint(str(e))
locs: list[str] = [str(x) for err in e.errors() for x in err["loc"]]
rprint(f"[red]Please check your provided settings for these options:[/red] {locs}")
exit(1)
|