1.1 --- a/lemon/lgf_writer.h Tue Sep 30 20:53:18 2008 +0200
1.2 +++ b/lemon/lgf_writer.h Wed Oct 01 11:58:03 2008 +0200
1.3 @@ -463,7 +463,7 @@
1.4 DigraphWriter(const std::string& fn, const Digraph& digraph)
1.5 : _os(new std::ofstream(fn.c_str())), local_os(true), _digraph(digraph),
1.6 _skip_nodes(false), _skip_arcs(false) {
1.7 - if (!(*_os)) throw IoError(fn, "Cannot write file");
1.8 + if (!(*_os)) throw IoError("Cannot write file", fn);
1.9 }
1.10
1.11 /// \brief Constructor
1.12 @@ -473,7 +473,7 @@
1.13 DigraphWriter(const char* fn, const Digraph& digraph)
1.14 : _os(new std::ofstream(fn)), local_os(true), _digraph(digraph),
1.15 _skip_nodes(false), _skip_arcs(false) {
1.16 - if (!(*_os)) throw IoError(fn, "Cannot write file");
1.17 + if (!(*_os)) throw IoError("Cannot write file", fn);
1.18 }
1.19
1.20 /// \brief Destructor
1.21 @@ -1023,7 +1023,7 @@
1.22 GraphWriter(const std::string& fn, const Graph& graph)
1.23 : _os(new std::ofstream(fn.c_str())), local_os(true), _graph(graph),
1.24 _skip_nodes(false), _skip_edges(false) {
1.25 - if (!(*_os)) throw IoError(fn, "Cannot write file");
1.26 + if (!(*_os)) throw IoError("Cannot write file", fn);
1.27 }
1.28
1.29 /// \brief Constructor
1.30 @@ -1033,7 +1033,7 @@
1.31 GraphWriter(const char* fn, const Graph& graph)
1.32 : _os(new std::ofstream(fn)), local_os(true), _graph(graph),
1.33 _skip_nodes(false), _skip_edges(false) {
1.34 - if (!(*_os)) throw IoError(fn, "Cannot write file");
1.35 + if (!(*_os)) throw IoError("Cannot write file", fn);
1.36 }
1.37
1.38 /// \brief Destructor
1.39 @@ -1585,7 +1585,7 @@
1.40 /// Construct a section writer, which writes into the given file.
1.41 SectionWriter(const std::string& fn)
1.42 : _os(new std::ofstream(fn.c_str())), local_os(true) {
1.43 - if (!(*_os)) throw IoError(fn, "Cannot write file");
1.44 + if (!(*_os)) throw IoError("Cannot write file", fn);
1.45 }
1.46
1.47 /// \brief Constructor
1.48 @@ -1593,7 +1593,7 @@
1.49 /// Construct a section writer, which writes into the given file.
1.50 SectionWriter(const char* fn)
1.51 : _os(new std::ofstream(fn)), local_os(true) {
1.52 - if (!(*_os)) throw IoError(fn, "Cannot write file");
1.53 + if (!(*_os)) throw IoError("Cannot write file", fn);
1.54 }
1.55
1.56 /// \brief Destructor