ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkFEMException.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkFEMException_h
19 #define itkFEMException_h
20 
21 #include <typeinfo>
22 #include <string>
23 
24 #include "itkMacro.h"
25 
26 namespace itk
27 {
28 namespace fem
29 {
41 class ITK_ABI_EXPORT FEMException : public itk::ExceptionObject
42 {
43 public:
44 
53  FEMException(const char *file, unsigned int lineNumber, std::string location = "Unknown");
54 
56  virtual ~FEMException()
57  ITK_NOEXCEPT ITK_OVERRIDE;
58 
60  itkTypeMacro(FEMException, ExceptionObject);
61 };
62 
70 class ITK_ABI_EXPORT FEMExceptionIO : public FEMException
71 {
72 public:
73 
79  FEMExceptionIO(const char *file, unsigned int lineNumber, std::string location, std::string moreDescription);
80 
82  virtual ~FEMExceptionIO()
83  ITK_NOEXCEPT ITK_OVERRIDE;
84 
86  itkTypeMacro(FEMExceptionIO, FEMException);
87 };
88 
107 class ITK_ABI_EXPORT FEMExceptionWrongClass : public FEMException
108 {
109 public:
110  FEMExceptionWrongClass(const char *file, unsigned int lineNumber, std::string location);
111 
113  virtual ~FEMExceptionWrongClass()
114  ITK_NOEXCEPT ITK_OVERRIDE;
115 
117  itkTypeMacro(FEMExceptionWrongClass, FEMException);
118 };
119 
128 class ITK_ABI_EXPORT FEMExceptionObjectNotFound : public FEMException
129 {
130 public:
131  FEMExceptionObjectNotFound(const char *file, unsigned int lineNumber, std::string location, std::string baseClassName,
132  int GN);
133 
135  virtual ~FEMExceptionObjectNotFound()
136  ITK_NOEXCEPT ITK_OVERRIDE;
137 
140 
144  std::string m_baseClassName;
146 };
147 
156 class ITK_ABI_EXPORT FEMExceptionSolution : public FEMException
157 {
158 public:
159 
165  FEMExceptionSolution(const char *file, unsigned int lineNumber, std::string location, std::string moreDescription);
166 
168  virtual ~FEMExceptionSolution()
169  ITK_NOEXCEPT ITK_OVERRIDE;
170 
172  itkTypeMacro(FEMExceptionSolution, FEMException);
173 };
174 }
175 } // end namespace itk::fem
176 
177 #endif // #ifndef itkFEMException_h
Base class for all exceptions that can occur when solving FEM problem.
Base class for all IO exception&#39;s that can occur within FEM classe.
Standard exception handling object.
Object not found exception.
Base class for all exception&#39;s that can occur within FEM classes.