You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

75 lines
1.8 KiB

  1. # Exceptions for reportbug
  2. # Written by Chris Lawrence <lawrencc@debian.org>
  3. # (C) 2002-04 Chris Lawrence
  4. # Copyright (C) 2008-2017 Sandro Tosi <morph@debian.org>
  5. #
  6. # This program is freely distributable per the following license:
  7. #
  8. # Permission to use, copy, modify, and distribute this software and its
  9. # documentation for any purpose and without fee is hereby granted,
  10. # provided that the above copyright notice appears in all copies and that
  11. # both that copyright notice and this permission notice appear in
  12. # supporting documentation.
  13. #
  14. # I DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  15. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL I
  16. # BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
  17. # DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18. # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19. # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20. # SOFTWARE.
  21. class reportbug_exception(Exception):
  22. pass
  23. class reportbug_ui_exception(reportbug_exception):
  24. pass
  25. # Can't initialize interface
  26. class UINotImportable(reportbug_ui_exception):
  27. pass
  28. # No package found
  29. class NoPackage(reportbug_ui_exception):
  30. pass
  31. # No bugs found
  32. class NoBugs(reportbug_ui_exception):
  33. pass
  34. # Nothing to report
  35. class NoReport(reportbug_ui_exception):
  36. pass
  37. # Code is not implemented
  38. class UINotImplemented(reportbug_ui_exception):
  39. pass
  40. # Other exceptions
  41. # No network access
  42. class NoNetwork(reportbug_exception):
  43. pass
  44. # Invalid regular expression
  45. class InvalidRegex(reportbug_exception):
  46. pass
  47. # Lame empty exception used later to save some coding
  48. class NoMessage(reportbug_exception):
  49. pass
  50. # There was a problem accessing BTS
  51. class QuertBTSError(reportbug_exception):
  52. pass