MCPcopy Create free account
hub / github.com/Kitware/VTK / ErrorObserver

Class ErrorObserver

Common/Core/Testing/Python/TestEmptyInput.py:111–130  ·  view source on GitHub ↗

See: http://public.kitware.com/pipermail/vtkusers/2012-June/074703.html

Source from the content-addressed store, hash-verified

109
110
111class ErrorObserver:
112 '''
113 See: http://public.kitware.com/pipermail/vtkusers/2012-June/074703.html
114 '''
115 def __init__(self):
116 self.__ErrorOccurred = False
117 self.__ErrorMessage = None
118 self.CallDataType = 'string0'
119
120 def __call__(self, obj, event, message):
121 self.__ErrorOccurred = True
122 self.__ErrorMessage = message
123
124 def ErrorOccurred(self):
125 occ = self.__ErrorOccurred
126 self.__ErrorOccurred = False
127 return occ
128
129 def ErrorMessage(self):
130 return self.__ErrorMessage
131
132def GetVTKClasses():
133 '''

Callers 1

TestOneFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestOneFunction · 0.56