Mercurial > gnulib
changeset 38963:60473d001ac7
error: sort error classes in alphabetical order
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Thu, 14 Sep 2017 18:14:00 +0300 |
parents | 8df7436cb316 |
children | 10c04a4d2690 |
files | pygnulib/error.py |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/error.py Wed Sep 13 22:18:03 2017 +0300 +++ b/pygnulib/error.py Thu Sep 14 18:14:00 2017 +0300 @@ -35,11 +35,10 @@ -class M4BaseMismatchError(Exception): - """unexpected gl_M4_BASE macro value""" - def __init__(self, path, expected, actual): - fmt = "{0} is expected to contain gl_M4_BASE([{1}]), not gl_M4_BASE([{2}])" - super().__init__(fmt.format(path, expected, actual)) +class EmptyFileListError(Exception): + """cannot process empty file list""" + def __init__(self): + super().__init__("cannot process empty file list") @@ -58,10 +57,11 @@ -class EmptyFileListError(Exception): - """cannot process empty file list""" - def __init__(self): - super().__init__("cannot process empty file list") +class M4BaseMismatchError(Exception): + """unexpected gl_M4_BASE macro value""" + def __init__(self, path, expected, actual): + fmt = "{0} is expected to contain gl_M4_BASE([{1}]), not gl_M4_BASE([{2}])" + super().__init__(fmt.format(path, expected, actual))