From c2be6303f97e470960ee77805128c46d3ea5c102 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Mar 2012 11:34:56 +0200 Subject: Detect situations where session is required but not used Throw session_required. --- odb/exceptions.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/exceptions.cxx') diff --git a/odb/exceptions.cxx b/odb/exceptions.cxx index 9089a5b..b200843 100644 --- a/odb/exceptions.cxx +++ b/odb/exceptions.cxx @@ -46,6 +46,12 @@ namespace odb return "session not in effect in this thread"; } + const char* session_required:: + what () const throw () + { + return "session required to load this object relationship"; + } + const char* deadlock:: what () const throw () { -- cgit v1.1