Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berrySafeRunner.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef BERRYSAFERUNNER_H_
19 #define BERRYSAFERUNNER_H_
20 
22 
23 #include "berryISafeRunnable.h"
24 
25 namespace berry {
26 
36 
37 public:
38 
46  static void Run(ISafeRunnable::Pointer code);
47 
48 private:
49 
50  static void HandleException(ISafeRunnable::Pointer code);
51  static void HandleException(ISafeRunnable::Pointer code, const std::exception&);
52  static void HandleException(ISafeRunnable::Pointer code, const ctkException& e);
53 
54 };
55 
56 }
57 
58 #endif /* BERRYSAFERUNNER_H_ */
#define org_blueberry_core_runtime_EXPORT