File: errorlist.py

package info (click to toggle)
borgbackup 1.1.9-2~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 11,924 kB
  • sloc: ansic: 39,459; python: 21,922; pascal: 2,269; sh: 137; makefile: 128
file content (14 lines) | stat: -rwxr-xr-x 404 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3

from textwrap import indent

import borg.archiver
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))