ctkCmdLineModuleRunException.h 1.7 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. #ifndef CTKCMDLINEMODULERUNEXCEPTION_H
  12. #define CTKCMDLINEMODULERUNEXCEPTION_H
  13. #include "ctkCommandLineModulesCoreExport.h"
  14. #include <ctkException.h>
  15. #include <QtCore>
  16. class CTK_CMDLINEMODULECORE_EXPORT ctkCmdLineModuleRunException
  17. : public QtConcurrent::Exception, public ctkException
  18. {
  19. public:
  20. explicit ctkCmdLineModuleRunException(const QString& location, int errorCode,
  21. const QString& errorString);
  22. ctkCmdLineModuleRunException(const QString& location, int errorCode,
  23. const QString& errorString, const ctkCmdLineModuleRunException& cause);
  24. ctkCmdLineModuleRunException(const ctkCmdLineModuleRunException& o);
  25. ctkCmdLineModuleRunException& operator=(const ctkCmdLineModuleRunException& o);
  26. ~ctkCmdLineModuleRunException() throw();
  27. QString location() const throw();
  28. int errorCode() const throw();
  29. QString errorString() const throw();
  30. virtual const char* name() const throw();
  31. virtual const char* className() const throw();
  32. virtual ctkCmdLineModuleRunException* clone() const;
  33. virtual void rethrow() const;
  34. virtual void raise() const;
  35. private:
  36. QString Location;
  37. int ErrorCode;
  38. QString ErrorString;
  39. };
  40. #endif // CTKCMDLINEMODULERUNEXCEPTION_H