Repositories
Help
tools.win_pg_dump_controller
Commits
Files
Yohn Y.
2022-05-29
Parent:
be791d354d2a
4:a38a008ce3e8
Go to Latest
tools.win_pg_dump_controller/win_pg_dump_controller/error.py
+ Иная логика работы с эпохами
Download raw file
View source
Diff to previous
Annotate
History
Loading...
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__
}
]'