1 /*=========================================================================
4 Module: $RCSfile: TestException.cxx,v $
6 Date: $Date: 2005/07/08 13:39:57 $
7 Version: $Revision: 1.2 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #include "gdcmException.h"
20 #include "gdcmDebug.h"
21 #include "gdcmGlobal.h"
22 #include "gdcmCommon.h"
28 myException( std::string ErrorMessage )
32 void Print() { std::cerr << "Pfff!" << error << std::endl; }
37 void functionForException() throw ( myException );
39 void functionForException()
42 throw myException("in functionForException : ");
47 int TestException(int , char **)
51 functionForException();
55 std::cout << "Exception 'myException' received" << std::endl;