From: jean-pierre roux Date: Wed, 27 May 2009 10:43:07 +0000 (+0000) Subject: Prepare except X-Git-Tag: CREATOOLS.2-0-3~48 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0ba697b89d622fe303b52b661230b7b6e795a37b;p=creaBruker.git Prepare except --- 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 }