tools.win_pg_dump_controller

Yohn Y. 2022-01-30

0:be791d354d2a Go to Latest

tools.win_pg_dump_controller/win_pg_dump_controller/error.py

..init

History
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/win_pg_dump_controller/error.py	Sun Jan 30 22:17:39 2022 +0300
     1.3 @@ -0,0 +1,9 @@
     1.4 +# coding: utf-8
     1.5 +
     1.6 +class Error(Exception):
     1.7 +    @staticmethod
     1.8 +    def err_fmt(e: Exception) -> str:
     1.9 +        return f'{type(e)}({e})'
    1.10 +
    1.11 +    def __str__(self):
    1.12 +        return f'{super().__str__()} - [{type(self).__name__}]'