aboutsummaryrefslogtreecommitdiff
path: root/components/__base__.py
diff options
context:
space:
mode:
authorDH42017-06-07 12:00:35 -0500
committerDH42017-06-07 12:00:35 -0500
commitfed9481d9a43d6274a036b2e46908ebdb316b387 (patch)
tree0d3594b421b6e89dbaa0bdb9f880cfe045ee8944 /components/__base__.py
parente6beca94a383ab916baf294ec2d703a47b4117fc (diff)
parentc946133da99a3bb1bf3565a19a12c641c8f77ed9 (diff)
Merge branch 'feature-newgui' of github.com:djfun/audio-visualizer-python into feature-newgui
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()