summaryrefslogtreecommitdiff
path: root/slicer/db/sqlCommon.cpp
blob: 645c10ff29bf280981abc314eadedcb51356f8ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <sqlExceptions.h>
#include <boost/format.hpp>

namespace Slicer {
	void TooManyRowsReturned::ice_print(std::ostream & s) const
	{
		s << "Too many rows returned";
	}

	void NoRowsReturned::ice_print(std::ostream & s) const
	{
		s << "No rows returned";
	}

	void NoRowsFound::ice_print(std::ostream & s) const
	{
		s << "No rows found";
	}

	void UnsuitableIdFieldType::ice_print(std::ostream & s) const
	{
		static boost::format f("Unsuitable id field type [%s]");
		s << f % type;
	}

}