From 0ba697b89d622fe303b52b661230b7b6e795a37b Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Wed, 27 May 2009 10:43:07 +0000 Subject: [PATCH] Prepare except --- appli/testBruker2Dicom/testBruker2Dicom.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/appli/testBruker2Dicom/testBruker2Dicom.cxx b/appli/testBruker2Dicom/testBruker2Dicom.cxx index bd015e5..a9a6c32 100644 --- a/appli/testBruker2Dicom/testBruker2Dicom.cxx +++ b/appli/testBruker2Dicom/testBruker2Dicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: testBruker2Dicom.cxx,v $ Language: C++ - Date: $Date: 2009/05/19 14:42:30 $ - Version: $Revision: 1.3 $ + Date: $Date: 2009/05/27 10:43:07 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -167,10 +167,18 @@ int main(int argc, char *argv[]) try { b2d.Execute(); } - catch (int) + catch (int i) { - std::cout << "Exception was thrown :-( " << std::endl; + std::cout << "Exception was thrown (" << i << ") " << std::endl; } + /* + catch (std::exception& e) { + std::cerr << "ERREUR: " << e.what() << "expected length: " << e.getExpectedLgt() + << " Found : " << e.getFoundLgt() << std::endl; + } + */ + + delete am; // we don't need Argument Manager any longer } -- 2.47.1