CountryList-Module: Add Exception-Handling classes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user