exception.py 379 B

12345678910111213
  1. class FilterException(Exception):
  2. """
  3. An exception that signals when an emoji has been filtered out of an export process.
  4. This also applies to implicit scenarios. ie. when the user is exporting a codepoint-named
  5. set and an emoji doesn't have a set codepoint.
  6. """
  7. def __init__(self, s=''):
  8. self.s = s
  9. def __str__(self):
  10. return self.s