py.lib.aw_config

Yohn Y. 2024-05-04

0:bece3a8a67a5 Go to Latest

py.lib.aw_config/src/aw_config/error.py

.. init

History
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/aw_config/error.py	Sat May 04 18:23:23 2024 +0300
     1.3 @@ -0,0 +1,6 @@
     1.4 +# coding: utf-8
     1.5 +
     1.6 +class Error(Exception):
     1.7 +    @staticmethod
     1.8 +    def fmt_error(err: Exception):
     1.9 +        return '%s(%s)' % (type(err).__name__, err)