diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-19 16:52:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-19 16:52:01 +0200 |
commit | 1d98f0160da68be27dcb46ae653e6cc4692a5bbe (patch) | |
tree | 47d8506cc7621f65ee8019b6336d744b11773eaf /odb/relational/sqlite | |
parent | b7335b8c1425138601698f2deac8e471b371cbcc (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/relational/sqlite')
-rw-r--r-- | odb/relational/sqlite/context.cxx | 12 | ||||
-rw-r--r-- | odb/relational/sqlite/schema.cxx | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/odb/relational/sqlite/context.cxx b/odb/relational/sqlite/context.cxx index f10e904..a135947 100644 --- a/odb/relational/sqlite/context.cxx +++ b/odb/relational/sqlite/context.cxx @@ -225,7 +225,7 @@ namespace relational { } - // Issues diagnostics and throws generation_failed in case of + // Issues diagnostics and throws operation_failed in case of // an error. // sql_type @@ -270,7 +270,7 @@ namespace relational cerr << m_.file () << ":" << m_.line () << ":" << m_.column () << ": error: expected SQLite type name instead of '" << t << "'" << endl; - throw generation_failed (); + throw operation_failed (); } } } @@ -279,14 +279,14 @@ namespace relational cerr << m_.file () << ":" << m_.line () << ":" << m_.column () << ": error: invalid SQLite type declaration: " << e.message << endl; - throw generation_failed (); + throw operation_failed (); } if (ids_.empty ()) { cerr << m_.file () << ":" << m_.line () << ":" << m_.column () << ": error: expected SQLite type name" << endl; - throw generation_failed (); + throw operation_failed (); } sql_type r; @@ -322,7 +322,7 @@ namespace relational { cerr << m_.file () << ":" << m_.line () << ":" << m_.column () << " error: unknown SQLite type '" << id << "'" << endl; - throw generation_failed (); + throw operation_failed (); } } @@ -344,7 +344,7 @@ namespace relational cerr << m_.file () << ":" << m_.line () << ":" << m_.column () << ": error: missing ')' in SQLite type declaration" << endl; - throw generation_failed (); + throw operation_failed (); } } } diff --git a/odb/relational/sqlite/schema.cxx b/odb/relational/sqlite/schema.cxx index 77a9590..1ed835e 100644 --- a/odb/relational/sqlite/schema.cxx +++ b/odb/relational/sqlite/schema.cxx @@ -35,7 +35,7 @@ namespace relational << ": error: column with default value specified as C++ " << "enumerator must map to SQLite INTEGER" << endl; - throw generation_failed (); + throw operation_failed (); } using semantics::enumerator; |