From 2c57577ac8995a83182190ae94e6b28f4715ca04 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 20 Jul 2010 11:05:05 +0200 Subject: Add database_exception --- odb/tracer/exceptions.hxx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 odb/tracer/exceptions.hxx (limited to 'odb/tracer/exceptions.hxx') diff --git a/odb/tracer/exceptions.hxx b/odb/tracer/exceptions.hxx new file mode 100644 index 0000000..7a1dc9f --- /dev/null +++ b/odb/tracer/exceptions.hxx @@ -0,0 +1,31 @@ +// file : odb/tracer/exceptions.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_TRACER_EXCEPTIONS_HXX +#define ODB_TRACER_EXCEPTIONS_HXX + +#include + +#include + +namespace odb +{ + namespace tracer + { + struct database_exception: odb::database_exception + { + database_exception (const std::string&); + ~database_exception () throw (); + + virtual char const* + what () const throw (); + + private: + std::string what_; + }; + } +} + +#endif // ODB_TRACER_EXCEPTIONS_HXX -- cgit v1.1