SummaryPage-Module: Create Exception-Classes

This commit is contained in:
2015-11-13 12:18:02 +01:00
parent f003b20d65
commit fec2143203

View File

@@ -31,7 +31,7 @@ from datetime import datetime, timedelta
import pywikibot import pywikibot
import mwparserfromhell as mwparser import mwparserfromhell as mwparser
from countrylist import CountryList from countrylist import CountryList, CountryListError
class SummaryPage(): class SummaryPage():
""" """
@@ -325,3 +325,22 @@ class SummaryPageEntryTemplate():
# If not returned True until now # If not returned True until now
return False return False
class SummaryPageError( Exception ):
"""
Handles errors occuring in class SummaryPage
"""
pass
class SummaryPageEntryError( SummaryPageError ):
"""
Handles errors occuring in class SummaryPageEntry
"""
pass
class SummaryPageEntryTemplateError( SummaryPageError ):
"""
Handles errors occuring in class SummaryPageEntryTemplate
"""
pass