Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFEMException.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFEMException.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-29 21:28:16 $
00007   Version:   $Revision: 1.10 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkFEMException_h
00018 #define __itkFEMException_h
00019 
00020 #include <typeinfo>
00021 #include <string>
00022 
00023 #include "itkMacro.h"
00024 
00025 namespace itk {
00026 namespace fem {
00027 
00038 class FEMException : public itk::ExceptionObject
00039 {
00040 public:
00041 
00050   FEMException(const char *file, unsigned int lineNumber, std::string location="Unknown");
00051 
00053   virtual ~FEMException() throw() {}
00054 
00056   itkTypeMacro(FEMException, ExceptionObject);
00057 };
00058 
00065 class FEMExceptionIO : public FEMException
00066 {
00067 public:
00068 
00074   FEMExceptionIO(const char *file, unsigned int lineNumber, std::string location, std::string moreDescription);
00075 
00077   virtual ~FEMExceptionIO() throw() {}
00078 
00080   itkTypeMacro(FEMExceptionIO,FEMException);
00081 };
00082 
00100 class FEMExceptionWrongClass : public FEMException
00101 {
00102 public:
00103   FEMExceptionWrongClass(const char *file, unsigned int lineNumber, std::string location);
00104 
00106   virtual ~FEMExceptionWrongClass() throw() {}
00107 
00109   itkTypeMacro(FEMExceptionWrongClass,FEMException);
00110 };
00111 
00119 class FEMExceptionObjectNotFound : public FEMException
00120 {
00121 public:
00122   FEMExceptionObjectNotFound(const char *file, unsigned int lineNumber, std::string location, std::string baseClassName, int GN);
00123 
00125   virtual ~FEMExceptionObjectNotFound() throw() {}
00126 
00128   itkTypeMacro(FEMExceptionObjectNotFound,FEMException);
00129 
00133   std::string m_baseClassName;
00134   int         m_GN;
00135 
00136 };
00137 
00145 class FEMExceptionSolution : public FEMException
00146 {
00147 public:
00148 
00154   FEMExceptionSolution(const char *file, unsigned int lineNumber, std::string location, std::string moreDescription);
00155 
00157   virtual ~FEMExceptionSolution() throw() {}
00158 
00160   itkTypeMacro(FEMExceptionSolution,FEMException);
00161 
00162 };
00163 
00164 }} // end namespace itk::fem
00165 
00166 #endif // #ifndef __itkFEMException_h
00167 

Generated at Thu May 28 09:55:49 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000