This is the class used for all exceptions thrown by the C++ library.
Add a note to the exception
Set self.__traceback__ to tb and return self.
OpenMM Python API