From eca0142f714f33541308944c78c4a347d7c3ce9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?GOLDERWEB=20=E2=80=93=20Jonathan=20Golder?= Date: Fri, 13 Nov 2015 12:22:17 +0100 Subject: [PATCH] CountryList-Module: Add Exception-Handling classes --- countrylist.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/countrylist.py b/countrylist.py index 18b508c..24fa8c0 100644 --- a/countrylist.py +++ b/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