summaryrefslogtreecommitdiff
path: root/odb/relational/mysql/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/mysql/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/mysql/context.cxx')
-rw-r--r--odb/relational/mysql/context.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/odb/relational/mysql/context.cxx b/odb/relational/mysql/context.cxx
index 59b93ba..891f448 100644
--- a/odb/relational/mysql/context.cxx
+++ b/odb/relational/mysql/context.cxx
@@ -575,7 +575,7 @@ namespace relational
else
cerr << " error: expected MySQL type name" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
// Fall through.
@@ -600,7 +600,7 @@ namespace relational
<< ": error: string literal expected in MySQL ENUM "
<< "or SET declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
if (r.type == sql_type::ENUM)
@@ -616,7 +616,7 @@ namespace relational
<< ": error: comma expected in MySQL ENUM or "
<< "SET declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
t = l.next ();
@@ -630,7 +630,7 @@ namespace relational
<< ": error: integer range expected in MySQL type "
<< "declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
unsigned int v;
@@ -642,7 +642,7 @@ namespace relational
<< ": error: invalid range value '" << t.literal ()
<< "'in MySQL type declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
r.range = true;
@@ -673,7 +673,7 @@ namespace relational
<< ": error: expected ')' in MySQL type declaration"
<< endl;
- throw generation_failed ();
+ throw operation_failed ();
}
s = parse_sign;
@@ -730,7 +730,7 @@ namespace relational
cerr << m.file () << ":" << m.line () << ":" << m.column ()
<< ": error: incomplete MySQL type declaration" << endl;
- throw generation_failed ();
+ throw operation_failed ();
}
// If range is omitted for CHAR or BIT types, it defaults to 1.
@@ -749,7 +749,7 @@ namespace relational
<< ": error: invalid MySQL type declaration: " << e.message
<< endl;
- throw generation_failed ();
+ throw operation_failed ();
}
}
}