AlgorithmDialogBase.py 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. """
  2. ***************************************************************************
  3. AlgorithmDialogBase.py
  4. ---------------------
  5. Date : August 2012
  6. Copyright : (C) 2012 by Victor Olaya
  7. Email : volayaf at gmail dot com
  8. ***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************
  16. """
  17. __author__ = 'Victor Olaya'
  18. __date__ = 'August 2012'
  19. __copyright__ = '(C) 2012, Victor Olaya'
  20. class AlgorithmDialogBase:
  21. class InvalidParameterValue(Exception):
  22. def __init__(self, param, widget):
  23. (self.parameter, self.widget) = (param, widget)
  24. class InvalidOutputExtension(Exception):
  25. def __init__(self, widget, message):
  26. self.widget = widget
  27. self.message = message