diff --git a/Modules/IGTBase/include/mitkIGTException.h b/Modules/IGTBase/include/mitkIGTException.h new file mode 100644 index 0000000000..593cf4b3a2 --- /dev/null +++ b/Modules/IGTBase/include/mitkIGTException.h @@ -0,0 +1,35 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#ifndef IGTEXCEPTION_H_INCLUDED +#define IGTEXCEPTION_H_INCLUDED + +#include +#include +#include "mitkExceptionMacro.h" + +namespace mitk { +/**Documentation +* \brief An object of this class represents an exception of the MITK-IGT module. +* +* \ingroup IGT +*/ class MITKIGTBASE_EXPORT IGTException : public mitk::Exception +{ + public: + mitkExceptionClassMacro(IGTException,mitk::Exception); + }; +} // namespace mitk +#endif diff --git a/Modules/IGTBase/include/mitkIGTHardwareException.h b/Modules/IGTBase/include/mitkIGTHardwareException.h new file mode 100644 index 0000000000..6b047eac58 --- /dev/null +++ b/Modules/IGTBase/include/mitkIGTHardwareException.h @@ -0,0 +1,34 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#ifndef IGTHARDWAREEXCEPTION_H_INCLUDED +#define IGTHARDWAREEXCEPTION_H_INCLUDED + +#include "mitkIGTException.h" +#include "mitkExceptionMacro.h" + +namespace mitk { + /**Documentation + * \brief An object of this class represents an exception of the MITK-IGT module which are releated to the hardware (e.g. connection problems, etc.). + * + * \ingroup IGT + */ class MITKIGTBASE_EXPORT IGTHardwareException : public mitk::IGTException + { + public: + mitkExceptionClassMacro(IGTHardwareException,mitk::IGTException); + }; +} // namespace mitk +#endif diff --git a/Modules/IGTBase/include/mitkIGTIOException.h b/Modules/IGTBase/include/mitkIGTIOException.h new file mode 100644 index 0000000000..e2f8a176c4 --- /dev/null +++ b/Modules/IGTBase/include/mitkIGTIOException.h @@ -0,0 +1,34 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#ifndef IGTIOEXCEPTION_H_INCLUDED +#define IGTIOEXCEPTION_H_INCLUDED + +#include +#include "mitkExceptionMacro.h" + +namespace mitk { + /**Documentation + * \brief An object of this class represents an exception of the MITK-IGT module which are releated to the input/output problems (e.g. reading writing files, etc.). + * + * \ingroup IGT + */ class MITKIGTBASE_EXPORT IGTIOException : public mitk::IGTException + { + public: + mitkExceptionClassMacro(IGTIOException,mitk::IGTException); + }; +} // namespace mitk +#endif diff --git a/Modules/IGTBase/src/mitkIGTException.cpp b/Modules/IGTBase/src/mitkIGTException.cpp new file mode 100644 index 0000000000..b2c4cefa26 --- /dev/null +++ b/Modules/IGTBase/src/mitkIGTException.cpp @@ -0,0 +1,17 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#include "mitkIGTException.h" diff --git a/Modules/IGTBase/src/mitkIGTHardwareException.cpp b/Modules/IGTBase/src/mitkIGTHardwareException.cpp new file mode 100644 index 0000000000..84bf2a068b --- /dev/null +++ b/Modules/IGTBase/src/mitkIGTHardwareException.cpp @@ -0,0 +1,17 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#include "mitkIGTHardwareException.h" diff --git a/Modules/IGTBase/src/mitkIGTIOException.cpp b/Modules/IGTBase/src/mitkIGTIOException.cpp new file mode 100644 index 0000000000..833d81a9eb --- /dev/null +++ b/Modules/IGTBase/src/mitkIGTIOException.cpp @@ -0,0 +1,17 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#include "mitkIGTIOException.h"