From 6f0d40508286afc8cdd72a0b5f807d5c2a589cfc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Jun 2010 16:33:08 +0200 Subject: Initial implementation --- odb/exception.hxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 odb/exception.hxx (limited to 'odb/exception.hxx') diff --git a/odb/exception.hxx b/odb/exception.hxx new file mode 100644 index 0000000..ff3fc63 --- /dev/null +++ b/odb/exception.hxx @@ -0,0 +1,22 @@ +// file : odb/exception.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_EXCEPTION_HXX +#define ODB_EXCEPTION_HXX + +#include + +namespace odb +{ + struct exception: std::exception + { + // By default return the exception type name ( typeid (*this).name () ). + // + virtual char const* + what () const throw (); + }; +} + +#endif // ODB_EXCEPTION_HXX -- cgit v1.1