src.pydasa.validations.error#
General error handling utilities for PyDASA.
Functions#
|
Generic function to handle errors across the whole PyDASA library. |
|
generic function to inspect a variable an gets its name in the source code. |
Module Contents#
- src.pydasa.validations.error.handle_error(ctx, func, exc)#
Generic function to handle errors across the whole PyDASA library.
- Parameters:
- Raises:
- Return type:
None
- src.pydasa.validations.error.inspect_var(var)#
generic function to inspect a variable an gets its name in the source code.
- Parameters:
var (Any) – The variable to inspect.
- Returns:
The name of the variable.
- Return type:
- Raises:
ValueError – If the variable name cannot be found in the current scope.