Coverage for pds_crawler/exception/extractor.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

9 statements  

1# -*- coding: utf-8 -*- 

2# pds-crawler - ETL to index PDS data to pdssp 

3# Copyright (C) 2023 - CNES (Jean-Christophe Malapert for Pôle Surfaces Planétaires) 

4# This file is part of pds-crawler <https://github.com/pdssp/pds_crawler> 

5# SPDX-License-Identifier: LGPL-3.0-or-later 

6from .error import CrawlerError 

7from .error import ModelError 

8 

9 

10class PdsCollectionAttributeError(ModelError): 

11 """Missing a mandatatory attribute in PdsCollection.""" 

12 

13 

14class PdsRecordAttributeError(ModelError): 

15 """Missing a mandatatory attribute in PdsRecord.""" 

16 

17 

18class NoFileExistInFolder(CrawlerError): 

19 """No content in PDS directory""" 

20 

21 

22class PdsCatalogDescriptionError(CrawlerError): 

23 """PDS error""" 

24 

25 

26class PlanetNotFound(CrawlerError): 

27 """Planet not found""" 

28 

29 

30class DateConversionError(CrawlerError): 

31 """Problem when converting a date""" 

32 

33 

34class ParserTimeOutError(CrawlerError): 

35 """Timeout when parsing with Lark"""