Coverage for frappe_manager / migration_manager / migration_exections.py: 50%

8 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-07-02 18:13 +0530

1class MigrationExceptionInBench(Exception): 

2 def __init__( 

3 self, 

4 error_msg: str, 

5 ): 

6 super().__init__(error_msg) 

7 

8 

9class BackupFailureException(Exception): 

10 """ 

11 Raised when backup fails during migration. 

12 

13 This exception is used to distinguish backup failures from other migration errors, 

14 allowing for specific user prompts and handling. 

15 """ 

16 

17 def __init__( 

18 self, 

19 error_msg: str, 

20 bench_name: str, 

21 original_exception: Exception, 

22 ): 

23 super().__init__(error_msg) 

24 self.bench_name = bench_name 

25 self.original_exception = original_exception