1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 15:57:15 +00:00
borg/scripts/errorlist.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
480 B
Python
Raw Normal View History

2017-02-28 10:58:43 +00:00
#!/usr/bin/env python3
from textwrap import indent
2021-03-13 16:39:43 +00:00
import borg.archiver # noqa: F401 - need import to get Error and ErrorWithTraceback subclasses.
2017-02-28 10:58:43 +00:00
from borg.helpers import Error, ErrorWithTraceback
classes = Error.__subclasses__() + ErrorWithTraceback.__subclasses__()
for cls in sorted(classes, key=lambda cls: (cls.__module__, cls.__qualname__)):
if cls is ErrorWithTraceback:
continue
print(" ", cls.__qualname__)
print(indent(cls.__doc__, " " * 8))