Changeset 1214:39993ada11c7 in lemon-0.x for src/lemon/graph_reader.h
- Timestamp:
- 03/11/05 19:54:18 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1634
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/graph_reader.h
r1208 r1214 19 19 ///\brief Graph reader. 20 20 21 #ifndef LEMON_GRAPH_READER_H 22 #define LEMON_GRAPH_READER_H 23 21 24 #include <iostream> 22 25 #include <sstream> … … 29 32 #include <lemon/error.h> 30 33 31 /// \todo fix exceptions32 33 34 34 35 namespace lemon { 35 36 // Exceptions37 36 38 37 … … 230 229 ErrorMessage msg; 231 230 msg << "Multiple read rule for node map: " << name; 232 throw IO LogicError(msg.message());231 throw IOParameterError(msg.message()); 233 232 } 234 233 node_map_readers.insert( … … 246 245 ErrorMessage msg; 247 246 msg << "Multiple read rule for node map: " << name; 248 throw IO LogicError(msg.message());247 throw IOParameterError(msg.message()); 249 248 } 250 249 node_map_readers.insert( … … 272 271 ErrorMessage msg; 273 272 msg << "Multiple read rule for edge map: " << name; 274 throw IO LogicError(msg.message());273 throw IOParameterError(msg.message()); 275 274 } 276 275 edge_map_readers.insert( … … 288 287 ErrorMessage msg; 289 288 msg << "Multiple read rule for edge map: " << name; 290 throw IO LogicError(msg.message());289 throw IOParameterError(msg.message()); 291 290 } 292 291 edge_map_readers.insert( … … 302 301 ErrorMessage msg; 303 302 msg << "Multiple read rule for node: " << name; 304 throw IO LogicError(msg.message());303 throw IOParameterError(msg.message()); 305 304 } 306 305 node_readers.insert(make_pair(name, &node)); … … 315 314 ErrorMessage msg; 316 315 msg << "Multiple read rule for edge: " << name; 317 throw IO LogicError(msg.message());316 throw IOParameterError(msg.message()); 318 317 } 319 318 edge_readers.insert(make_pair(name, &edge)); … … 694 693 695 694 } 695 696 #endif
Note: See TracChangeset
for help on using the changeset viewer.