From 6f9ed6a829aa3e0be2c7f8e8d871bdeb593d5698 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 2 Sep 2013 00:50:57 -0500 Subject: basic config support --- pokemontools/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pokemontools/exceptions.py') diff --git a/pokemontools/exceptions.py b/pokemontools/exceptions.py index 71d0da2..2ccc58a 100644 --- a/pokemontools/exceptions.py +++ b/pokemontools/exceptions.py @@ -11,3 +11,8 @@ class TextScriptException(Exception): """ TextScript encountered an inconsistency or problem. """ + +class ConfigException(Exception): + """ + Configuration error. Maybe a missing config variable. + """ -- cgit v1.2.3 From 2cf0cfa34d008d3f845082a86ec037311570396b Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 2 Sep 2013 02:17:44 -0500 Subject: class Preprocessor instead of just functions --- pokemontools/exceptions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pokemontools/exceptions.py') diff --git a/pokemontools/exceptions.py b/pokemontools/exceptions.py index 2ccc58a..4de62eb 100644 --- a/pokemontools/exceptions.py +++ b/pokemontools/exceptions.py @@ -16,3 +16,13 @@ class ConfigException(Exception): """ Configuration error. Maybe a missing config variable. """ + +class PreprocessorException(Exception): + """ + There was a problem in the preprocessor. + """ + +class MacroException(PreprocessorException): + """ + There was a problem with a macro. + """ -- cgit v1.2.3