/*========================================================================= Program: FusionViewer Module: $RCSfile: ItkIOException.h,v $ Language: C++ Date: $Date: 2006/08/10 17:38:46 $ Version: $Revision: 1.1.1.1 $ Copyright (c) Insightful Corporation. All rights reserved. See Copyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #ifndef _Included_ItkIOException #define _Included_ItkIOException #include #include /** \class ItkIOException * \brief Exception thrown by ITKImageIO on file I/O errors. *\addtogroup FusionViewerJNI */ // Class attribute macros for the Windows DLL build // ITK_IMAGE_PROVIDER_EXPORT should be defined when building the DLL. // NO_ITK_IMAGE_PROVIDER_DLL should be defined when a DLL is not being built. #if (defined(NO_ITK_IMAGE_PROVIDER_DLL) || !defined(WIN32)) #define IMAGE_PROVIDER #else #ifdef ITK_IMAGE_PROVIDER_EXPORT #define IMAGE_PROVIDER __declspec(dllexport) #else #define IMAGE_PROVIDER __declspec(dllimport) #endif #endif class IMAGE_PROVIDER ItkIOException : public std::exception { public: ItkIOException() throw(); ItkIOException(const char *msg) throw(); virtual ~ItkIOException() throw(); virtual const char *what() const throw(); protected: std::string message; }; #endif