From bb2358220adfe274b54d9b155205b60ddfe625c6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Mar 2011 11:56:33 +0200 Subject: Add support for embedded database schemas New options: --schema-format, --default-schema. New example: schema/embedded. --- odb/exceptions.cxx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'odb/exceptions.cxx') diff --git a/odb/exceptions.cxx b/odb/exceptions.cxx index 1d4be70..b79f189 100644 --- a/odb/exceptions.cxx +++ b/odb/exceptions.cxx @@ -3,8 +3,12 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file +#include + #include +using namespace std; + namespace odb { const char* null_pointer:: @@ -84,4 +88,24 @@ namespace odb { return "object already persistent"; } + + unknown_schema:: + unknown_schema (const std::string& name) + : name_ (name) + { + ostringstream ostr; + ostr << "unknown database schema '" << name << "'"; + what_ = ostr.str (); + } + + unknown_schema:: + ~unknown_schema () throw () + { + } + + const char* unknown_schema:: + what () const throw () + { + return what_.c_str (); + } } -- cgit v1.1