Coverage for portality / ui / exceptions.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-04 09:41 +0100

1 

2 

3class ArticleFromWithdrawnJournal(Exception): 

4 """ 

5 Raised when when an attempt is made to access an article that appears in withdrawn journal 

6 """ 

7 

8 def __init__(self, message=None, **kwargs): 

9 super(ArticleFromWithdrawnJournal, self).__init__(message) 

10 

11 

12class TombstoneArticle(Exception): 

13 """ 

14 Raised when when an attempt is made to access an article that has been deleted 

15 """ 

16 

17 def __init__(self, message=None, **kwargs): 

18 super(TombstoneArticle, self).__init__(message) 

19 

20 

21class JournalWithdrawn(Exception): 

22 """ 

23 Raised when an attempt is made to access a withdrawn journal. 

24 """ 

25 

26 def __init__(self, message=None, context=None): 

27 super(JournalWithdrawn, self).__init__(message)