exceptions.py 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. # -*- coding: utf-8 -*-
  2. class TracimError(Exception):
  3. pass
  4. class TracimException(Exception):
  5. pass
  6. class RunTimeError(TracimError):
  7. pass
  8. class ContentRevisionUpdateError(RuntimeError):
  9. pass
  10. class ContentRevisionDeleteError(ContentRevisionUpdateError):
  11. pass
  12. class ConfigurationError(TracimError):
  13. pass
  14. class UserAlreadyExistError(TracimError):
  15. pass
  16. class BadCommandError(TracimError):
  17. pass
  18. class DaemonException(TracimException):
  19. pass
  20. class AlreadyRunningDaemon(DaemonException):
  21. pass
  22. class CalendarException(TracimException):
  23. pass
  24. class UnknownCalendarType(CalendarException):
  25. pass
  26. class NotFound(TracimException):
  27. pass
  28. class SameValueError(ValueError):
  29. pass
  30. class NotAuthenticated(TracimException):
  31. pass
  32. class WorkspaceNotFound(NotFound):
  33. pass
  34. class WorkspaceNotFoundInTracimRequest(NotFound):
  35. pass
  36. class InsufficientUserRoleInWorkspace(TracimException):
  37. pass
  38. class InsufficientUserProfile(TracimException):
  39. pass
  40. class ImmutableAttribute(TracimException):
  41. pass
  42. class DigestAuthNotImplemented(Exception):
  43. pass
  44. class AuthenticationFailed(TracimException):
  45. pass
  46. class WrongUserPassword(TracimException):
  47. pass
  48. class NotificationNotSend(TracimException):
  49. pass
  50. class GroupDoesNotExist(TracimError):
  51. pass
  52. class ContentStatusNotExist(TracimError):
  53. pass
  54. class ContentTypeNotExist(TracimError):
  55. pass
  56. class UserDoesNotExist(TracimException):
  57. pass
  58. class UserNotFoundInTracimRequest(TracimException):
  59. pass
  60. class ContentNotFoundInTracimRequest(TracimException):
  61. pass
  62. class InvalidId(TracimException):
  63. pass
  64. class InvalidContentId(InvalidId):
  65. pass
  66. class InvalidCommentId(InvalidId):
  67. pass
  68. class InvalidWorkspaceId(InvalidId):
  69. pass
  70. class InvalidUserId(InvalidId):
  71. pass
  72. class ContentNotFound(TracimException):
  73. pass
  74. class ContentTypeNotAllowed(TracimException):
  75. pass
  76. class WorkspacesDoNotMatch(TracimException):
  77. pass
  78. class PasswordDoNotMatch(TracimException):
  79. pass
  80. class EmptyValueNotAllowed(TracimException):
  81. pass
  82. class EmptyLabelNotAllowed(EmptyValueNotAllowed):
  83. pass
  84. class EmptyCommentContentNotAllowed(EmptyValueNotAllowed):
  85. pass
  86. class UserNotActive(TracimException):
  87. pass
  88. class NoUserSetted(TracimException):
  89. pass
  90. class RoleDoesNotExist(TracimException):
  91. pass
  92. class EmailValidationFailed(TracimException):
  93. pass
  94. class UserCreationFailed(TracimException):
  95. pass
  96. class ParentNotFound(NotFound):
  97. pass
  98. class RevisionDoesNotMatchThisContent(TracimException):
  99. pass
  100. class PageOfPreviewNotFound(NotFound):
  101. pass
  102. class PreviewDimNotAllowed(TracimException):
  103. pass
  104. class UnallowedSubContent(TracimException):
  105. pass
  106. class TooShortAutocompleteString(TracimException):
  107. pass
  108. class PageNotFound(TracimException):
  109. pass
  110. class EmailAlreadyExistInDb(TracimException):
  111. pass