Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1 

2""" Exceptions for working with SDC Data Validation """ 

3 

4 

5class SDCDataValidationError(Exception): 

6 """ 

7 Custom exception class. General exception. 

8 """ 

9 

10 

11class SDCDataValidationSetupError(Exception): 

12 """ 

13 Custom exception class. Validator setup exception. 

14 """ 

15 

16 

17class SDCDataValidationUnknownTest(Exception): 

18 """ 

19 Custom exception class. Error when a data test does not exist. 

20 """ 

21 

22 def __init__(self, test_name_): 

23 self.message = f"Requested test '{test_name_}' does not exist." 

24 super().__init__(self.message)