COIN-OR::LEMON - Graph Library

Changeset 1214:39993ada11c7 in lemon-0.x


Ignore:
Timestamp:
03/11/05 19:54:18 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1634
Message:

Changing exception names.
Compile sentry fix.

Location:
src/lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/graph_reader.h

    r1208 r1214  
    1919///\brief Graph reader.
    2020
     21#ifndef LEMON_GRAPH_READER_H
     22#define LEMON_GRAPH_READER_H
     23
    2124#include <iostream>
    2225#include <sstream>
     
    2932#include <lemon/error.h>
    3033
    31 /// \todo fix exceptions
    32 
    3334
    3435namespace lemon {
    35 
    36   // Exceptions
    3736
    3837
     
    230229        ErrorMessage msg;
    231230        msg << "Multiple read rule for node map: " << name;
    232         throw IOLogicError(msg.message());
     231        throw IOParameterError(msg.message());
    233232      }
    234233      node_map_readers.insert(
     
    246245        ErrorMessage msg;
    247246        msg << "Multiple read rule for node map: " << name;
    248         throw IOLogicError(msg.message());
     247        throw IOParameterError(msg.message());
    249248      }
    250249      node_map_readers.insert(
     
    272271        ErrorMessage msg;
    273272        msg << "Multiple read rule for edge map: " << name;
    274         throw IOLogicError(msg.message());
     273        throw IOParameterError(msg.message());
    275274      }
    276275      edge_map_readers.insert(
     
    288287        ErrorMessage msg;
    289288        msg << "Multiple read rule for edge map: " << name;
    290         throw IOLogicError(msg.message());
     289        throw IOParameterError(msg.message());
    291290      }
    292291      edge_map_readers.insert(
     
    302301        ErrorMessage msg;
    303302        msg << "Multiple read rule for node: " << name;
    304         throw IOLogicError(msg.message());
     303        throw IOParameterError(msg.message());
    305304      }
    306305      node_readers.insert(make_pair(name, &node));
     
    315314        ErrorMessage msg;
    316315        msg << "Multiple read rule for edge: " << name;
    317         throw IOLogicError(msg.message());
     316        throw IOParameterError(msg.message());
    318317      }
    319318      edge_readers.insert(make_pair(name, &edge));
     
    694693
    695694}
     695
     696#endif
  • src/lemon/graph_writer.h

    r1208 r1214  
    1919///\brief Graph writer.
    2020
     21#ifndef LEMON_GRAPH_WRITER_H
     22#define LEMON_GRAPH_WRITER_H
    2123
    2224#include <iostream>
     
    2931
    3032#include <lemon/map_utils.h>
     33
    3134#include <lemon/invalid.h>
    3235#include <lemon/error.h>
     
    445448
    446449}
     450
     451#endif
Note: See TracChangeset for help on using the changeset viewer.