tools.win_pg_dump_controller

Yohn Y. 2022-07-11 Parent:be791d354d2a

7:92c88f8fb6c9 Go to Latest

tools.win_pg_dump_controller/win_pg_dump_controller/error.py

.. import D6

History
awgur@0 1 # coding: utf-8
awgur@0 2
awgur@0 3 class Error(Exception):
awgur@0 4 @staticmethod
awgur@0 5 def err_fmt(e: Exception) -> str:
awgur@0 6 return f'{type(e)}({e})'
awgur@0 7
awgur@0 8 def __str__(self):
awgur@0 9 return f'{super().__str__()} - [{type(self).__name__}]'