CountryList-Module: Add Exception-Handling classes

This commit is contained in:
2015-11-13 12:22:17 +01:00
parent 2e8b4273e7
commit eca0142f71

View File

@@ -329,3 +329,16 @@ missing!" )
else: else:
raise CountryListEntryError( "Template Parameter 'Interpret' is \ raise CountryListEntryError( "Template Parameter 'Interpret' is \
missing!" ) missing!" )
class CountryListError( Exception ):
"""
Handles errors occuring in class CountryList
"""
pass
class CountryListEntryError( CountryListError );
"""
Handles errors occuring in class CountryList related to entrys
"""
pass