aboutsummaryrefslogtreecommitdiff
path: root/odb/include.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-19 16:52:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-19 16:52:01 +0200
commit1d98f0160da68be27dcb46ae653e6cc4692a5bbe (patch)
tree47d8506cc7621f65ee8019b6336d744b11773eaf /odb/include.cxx
parentb7335b8c1425138601698f2deac8e471b371cbcc (diff)
Rename generation_failed exception to operation_failed
A more generic name is required since it is now used in both generator and processor (and in the future may be used validator).
Diffstat (limited to 'odb/include.cxx')
-rw-r--r--odb/include.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/include.cxx b/odb/include.cxx
index 16842c8..1c143f4 100644
--- a/odb/include.cxx
+++ b/odb/include.cxx
@@ -188,7 +188,7 @@ namespace
if (!is.is_open ())
{
cerr << "error: unable to open '" << f << "' in read mode" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
parse_stream (is, f, lines);
@@ -244,7 +244,7 @@ namespace
{
cerr << name << ":" << lb << ":1: error: "
<< "unable to parse #include directive" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
}
}
@@ -277,7 +277,7 @@ namespace
if (is.bad () || (is.fail () && !is.eof ()))
{
cerr << "error: input error while reading '" << name << "'" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
}