_sf_error.py 375 B

123456789101112131415
  1. """Warnings and Exceptions that can be raised by special functions."""
  2. import warnings
  3. class SpecialFunctionWarning(Warning):
  4. """Warning that can be emitted by special functions."""
  5. pass
  6. warnings.simplefilter("always", category=SpecialFunctionWarning)
  7. class SpecialFunctionError(Exception):
  8. """Exception that can be raised by special functions."""
  9. pass