Coverage for pyeditorjs/exceptions.py: 100%

1 __all__ = [

2 "EditorJsException",

3 "EditorJsParseError",

4 "EditorJSUnsupportedBlock",

5]

6

7

8 class EditorJsException(Exception):

9 """

10 Base exception

11 """

12

13

14 class EditorJsParseError(EditorJsException):

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

16

17

18 class EditorJSUnsupportedBlock(EditorJsException):

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