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
berryCoreException.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 #ifndef BERRYCOREEXCEPTION_H
18 #define BERRYCOREEXCEPTION_H
19 
20 #include <berryIStatus.h>
21 
22 #include <ctkException.h>
23 
24 namespace berry {
25 
26 struct IStatus;
27 
38 {
39 
40 public:
41 
48  CoreException(const SmartPointer<IStatus>& status);
49 
50  ~CoreException() throw();
51 
52  const char* name() const throw() override;
53 
54  CoreException* clone() const override;
55 
56  void rethrow() const override;
57 
63  SmartPointer<IStatus> GetStatus() const;
64 
65 private:
66 
68  const SmartPointer<IStatus> status;
69 
77  QDebug printStackTrace(QDebug dbg) const override;
78 
79  QDebug PrintChildren(IStatus* status, QDebug dbg) const;
80 };
81 
82 }
83 
84 #endif // BERRYCOREEXCEPTION_H
Implements transparent reference counting.
#define org_blueberry_core_runtime_EXPORT
static void clone(T *&dst, S *src, int n)
Definition: svm.cpp:73