tools.win_pg_dump_controller
2022-01-30
tools.win_pg_dump_controller/win_pg_dump_controller/error.py
..init
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__}]'