Coverage for pyeditorjs/exceptions.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-10-31 13:29 +0100

1__all__ = [ 

2 "EditorJsException", 

3 "EditorJsParseError", 

4 "EditorJSUnsupportedBlock", 

5] 

6 

7 

8class EditorJsException(Exception): 

9 """ 

10 Base exception 

11 """ 

12 

13 

14class EditorJsParseError(EditorJsException): 

15 """Raised when a parse error occurs (example: the JSON data has invalid or malformed content).""" 

16 

17 

18class EditorJSUnsupportedBlock(EditorJsException): 

19 """Raised when strict=True and using an unknown block type."""