m2m模型翻译
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.

34 lines
642 B

6 months ago
  1. class ConsoleError(Exception):
  2. """An error in console operation."""
  3. class StyleError(Exception):
  4. """An error in styles."""
  5. class StyleSyntaxError(ConsoleError):
  6. """Style was badly formatted."""
  7. class MissingStyle(StyleError):
  8. """No such style."""
  9. class StyleStackError(ConsoleError):
  10. """Style stack is invalid."""
  11. class NotRenderableError(ConsoleError):
  12. """Object is not renderable."""
  13. class MarkupError(ConsoleError):
  14. """Markup was badly formatted."""
  15. class LiveError(ConsoleError):
  16. """Error related to Live display."""
  17. class NoAltScreen(ConsoleError):
  18. """Alt screen mode was required."""