Browse Source

CountryList-Module: Add Exception-Handling classes

develop
Jonathan Golder 9 years ago
parent
commit
eca0142f71
  1. 13
      countrylist.py

13
countrylist.py

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

Loading…
Cancel
Save