errorsο
ErrorObserverο
- class PVGeo._helpers.errors.ErrorObserver[source]ο
Bases:
object
A class for catching errors when processing on a VTK pipeline. The
AlgorithmBase
class handles setting up this observer on initialization.Example
>>> import PVGeo >>> # Only use this observer on sub classes of the AlgorithmBase: >>> f = PVGeo.AlgorithmBase() >>> f.Update() >>> if f.error_occurred(): >>> print(f.get_error_message()) ERROR: ...
PVGeoErrorο
- class PVGeo._helpers.errors.PVGeoError(message)[source]ο
Bases:
Exception
This is a custom error class for handling errors when processing on the VTK pipeline. It makes the error messages easy to decipher in ParaView and cleans the messages when used in Python outside of ParaView. When on the VTK pipeline, errors arenβt really raised but passed over and printed to the console. This class makes decipher the error streams a whole lot easier for human eyes.
- QUALIFIER_L = '@@@@PVGeoError ---> 'ο
- QUALIFIER_R = ' <--- PVGeoError@@@@'ο
- SEARCHER = re.compile('@@@@PVGeoError --->.+?<--- PVGeoError@@@@', re.MULTILINE|re.DOTALL)ο