ctkCmdLineModuleRunException.cpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*===================================================================
  2. BlueBerry Platform
  3. Copyright (c) German Cancer Research Center,
  4. Division of Medical and Biological Informatics.
  5. All rights reserved.
  6. This software is distributed WITHOUT ANY WARRANTY; without
  7. even the implied warranty of MERCHANTABILITY or FITNESS FOR
  8. A PARTICULAR PURPOSE.
  9. See LICENSE.txt or http://www.mitk.org for details.
  10. ===================================================================*/
  11. #include "ctkCmdLineModuleRunException.h"
  12. ctkCmdLineModuleRunException::ctkCmdLineModuleRunException(const QString& msg)
  13. : QtConcurrent::Exception(), ctkException(msg)
  14. {
  15. }
  16. ctkCmdLineModuleRunException::ctkCmdLineModuleRunException(const QString& msg, const ctkCmdLineModuleRunException& cause)
  17. : QtConcurrent::Exception(), ctkException(msg, cause)
  18. {
  19. }
  20. ctkCmdLineModuleRunException::ctkCmdLineModuleRunException(const ctkCmdLineModuleRunException& o)
  21. : QtConcurrent::Exception(o), ctkException(o)
  22. {
  23. }
  24. ctkCmdLineModuleRunException::~ctkCmdLineModuleRunException() throw()
  25. {
  26. }
  27. const char* ctkCmdLineModuleRunException::name() const throw()
  28. {
  29. return "CTK CommandLineModule Run Exception";
  30. }
  31. const char* ctkCmdLineModuleRunException::className() const throw()
  32. {
  33. return "ctkCmdLineModuleRunException";
  34. }
  35. ctkCmdLineModuleRunException* ctkCmdLineModuleRunException::clone() const
  36. {
  37. return new ctkCmdLineModuleRunException(*this);
  38. }
  39. void ctkCmdLineModuleRunException::rethrow() const
  40. {
  41. throw *this;
  42. }
  43. void ctkCmdLineModuleRunException::raise() const
  44. {
  45. throw *this;
  46. }