Coverage for src/mkdocs_gallery/errors.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-03-15 17:10 +0000

1# Authors: Sylvain MARIE <sylvain.marie@se.com> 

2# + All contributors to <https://github.com/smarie/mkdocs-gallery> 

3# 

4# Original idea and code: sphinx-gallery, <https://sphinx-gallery.github.io> 

5# License: 3-clause BSD, <https://github.com/smarie/mkdocs-gallery/blob/master/LICENSE> 

6""" 

7Common errors 

8""" 

9 

10from mkdocs.exceptions import PluginError 

11 

12 

13class MkdocsGalleryError(PluginError): 

14 """The base class of all errors in this plugin. 

15 

16 See https://www.mkdocs.org/dev-guide/plugins/#handling-errors. 

17 """ 

18 

19 

20class ExtensionError(MkdocsGalleryError): 

21 pass 

22 

23 

24class ConfigError(MkdocsGalleryError): 

25 pass