Changeset 608 in Sophya for trunk/SophyaLib/NTools/datacards.cc
- Timestamp:
- Nov 20, 1999, 10:03:16 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/datacards.cc
r244 r608 1 // $Id: datacards.cc,v 1. 2 1999-04-22 16:18:22ansari Exp $1 // $Id: datacards.cc,v 1.3 1999-11-20 21:03:16 ansari Exp $ 2 2 // 3 3 // Datacards, acquisition EROS II … … 10 10 #include "machdefs.h" 11 11 #include "datacards.h" 12 #include "pexceptions.h" 12 13 #include <algorithm> 13 14 #include <iostream.h> … … 100 101 if (file == "") return; 101 102 102 TRY{103 try { 103 104 DoReadFile(file); 104 } CATCHALL{105 } catch(...) { 105 106 char* wdp = getenv("PEIDA_WORK"); 106 107 if (wdp) { … … 110 111 } 111 112 else cerr << "DataCards::ReadFile() Error reading file " << fn << "\n"; 112 THROW(fileErr); 113 114 } ENDTRY 113 throw IOExc("DataCards::ReadFile() Error"); 114 } 115 115 } 116 116 … … 151 151 FILE *fip; 152 152 153 if ( (fip = fopen(fn.c_str(),"r")) == NULL ) THROW(fileErr); 153 if ( (fip = fopen(fn.c_str(),"r")) == NULL ) 154 throw IOExc("DataCards::DoReadFile() fopen Error ") ; 154 155 while (fgets(line_buff,511,fip) != NULL) 155 156 {
Note:
See TracChangeset
for help on using the changeset viewer.