aboutsummaryrefslogtreecommitdiff
path: root/components/__base__.py
diff options
context:
space:
mode:
Diffstat (limited to 'components/__base__.py')
-rw-r--r--components/__base__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/__base__.py b/components/__base__.py
index 94ac6f2..4fdf31f 100644
--- a/components/__base__.py
+++ b/components/__base__.py
@@ -84,3 +84,13 @@ class Component:
def reset(self):
self.canceled = False
'''
+
+class BadComponentInit(Exception):
+ def __init__(self, arg, name):
+ string = \
+'''################################
+Mandatory argument "%s" not specified
+ in %s instance initialization
+###################################'''
+ print(string % (arg, name))
+ quit()