Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berryCoreException.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef BERRYCOREEXCEPTION_H
14 #define BERRYCOREEXCEPTION_H
15 
16 #include <berryIStatus.h>
17 
18 #include <ctkException.h>
19 
20 namespace berry {
21 
22 struct IStatus;
23 
34 {
35 
36 public:
37 
44  CoreException(const SmartPointer<IStatus>& status);
45 
46  ~CoreException() throw() override;
47 
48  const char* name() const throw() override;
49 
50  CoreException* clone() const override;
51 
52  void rethrow() const override;
53 
59  SmartPointer<IStatus> GetStatus() const;
60 
61 private:
62 
64  const SmartPointer<IStatus> status;
65 
73  QDebug printStackTrace(QDebug dbg) const override;
74 
75  QDebug PrintChildren(IStatus* status, QDebug dbg) const;
76 };
77 
78 }
79 
80 #endif // BERRYCOREEXCEPTION_H
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::CoreException
Definition: berryCoreException.h:33
org_blueberry_core_runtime_EXPORT
#define org_blueberry_core_runtime_EXPORT
Definition: org_blueberry_core_runtime_Export.h:26
berry::IStatus
Definition: berryIStatus.h:52
berryIStatus.h
berry
Definition: QmitkPropertyItemModel.h:24