MCPcopy
hub / github.com/borgbackup/borg / BackupWarning

Class BackupWarning

src/borg/helpers/errors.py:115–126  ·  view source on GitHub ↗

{}: {}

Source from the content-addressed store, hash-verified

113
114
115class BackupWarning(BorgWarning):
116 """{}: {}"""
117
118 # this is to wrap a caught BackupError exception, so it can be given to print_warning_instance
119
120 @property
121 def exit_code(self):
122 if not modern_ec:
123 return EXIT_WARNING
124 exc = self.args[1]
125 assert isinstance(exc, BackupError)
126 return exc.exit_mcode
127
128
129class BackupError(ErrorBase):

Callers 3

create_innerMethod · 0.85
_rec_walkMethod · 0.85
do_extractMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected