aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/pgsql/context.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/relational/pgsql/context.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/relational/pgsql/context.cxx')
-rw-r--r--odb/relational/pgsql/context.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/odb/relational/pgsql/context.cxx b/odb/relational/pgsql/context.cxx
index 68739df..b058696 100644
--- a/odb/relational/pgsql/context.cxx
+++ b/odb/relational/pgsql/context.cxx
@@ -370,7 +370,7 @@ namespace relational
<< ": error: PostgreSQL time zones are not currently "
<< "supported" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
else if (id == "TIMESTAMP")
{
@@ -382,7 +382,7 @@ namespace relational
<< ": error: PostgreSQL time zones are not currently "
<< "supported" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
//
// String and binary types.
@@ -457,7 +457,7 @@ namespace relational
else
cerr << " error: expected PostgreSQL type name" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
// Fall through.
@@ -476,7 +476,7 @@ namespace relational
<< ": error: integer range expected in PostgreSQL type "
<< "declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
unsigned int v;
@@ -488,7 +488,7 @@ namespace relational
<< ": error: invalid range value '" << t.literal ()
<< "'in PostgreSQL type declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
r.range = true;
@@ -510,7 +510,7 @@ namespace relational
<< ": error: expected ')' in PostgreSQL type "
<< "declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
s = parse_suffix;
@@ -551,7 +551,7 @@ namespace relational
<< m.column ()<< ": error: PostgreSQL time "
<< "zones are not currently supported" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
}
}
@@ -597,7 +597,7 @@ namespace relational
cerr << m.file () << ":" << m.line () << ":" << m.column ()
<< ": error: incomplete PostgreSQL type declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
// If range is omitted for CHAR or BIT types, it defaults to 1.
@@ -616,7 +616,7 @@ namespace relational
<< ": error: invalid PostgreSQL type declaration: " << e.message
<< endl;
- throw generation_failed ();
+ throw operation_failed ();
}
}
}