diff options
| author | DH4 | 2017-06-07 12:00:35 -0500 |
|---|---|---|
| committer | DH4 | 2017-06-07 12:00:35 -0500 |
| commit | fed9481d9a43d6274a036b2e46908ebdb316b387 (patch) | |
| tree | 0d3594b421b6e89dbaa0bdb9f880cfe045ee8944 /components/__base__.py | |
| parent | e6beca94a383ab916baf294ec2d703a47b4117fc (diff) | |
| parent | c946133da99a3bb1bf3565a19a12c641c8f77ed9 (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__.py | 10 |
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() |
