aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fg21sim/configs/manager.py5
-rw-r--r--fg21sim/errors.py11
2 files changed, 12 insertions, 4 deletions
diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py
index e274609..81351ad 100644
--- a/fg21sim/configs/manager.py
+++ b/fg21sim/configs/manager.py
@@ -18,10 +18,7 @@ from functools import reduce
from configobj import ConfigObj, ConfigObjError, flatten_errors
from validate import Validator
-
-class ConfigError(Exception):
- """Could not parse user configurations"""
- pass
+from ..errors import ConfigError
CONFIGS_PATH = os.path.dirname(__file__)
diff --git a/fg21sim/errors.py b/fg21sim/errors.py
new file mode 100644
index 0000000..6138127
--- /dev/null
+++ b/fg21sim/errors.py
@@ -0,0 +1,11 @@
+# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# MIT license
+
+"""
+Custom errors/exceptions.
+"""
+
+
+class ConfigError(Exception):
+ """Could not parse user configurations"""
+ pass