1//
2// DataException.cpp
3//
4// Library: Data
5// Package: DataCore
6// Module: DataException
7//
8// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Data/DataException.h"
16#include <typeinfo>
17
18
19namespace Poco {
20namespace Data {
21
22
23POCO_IMPLEMENT_EXCEPTION(DataException, Poco::IOException, "Database Exception")
24POCO_IMPLEMENT_EXCEPTION(RowDataMissingException, DataException, "Data for row missing")
25POCO_IMPLEMENT_EXCEPTION(UnknownDataBaseException, DataException, "Type of data base unknown")
26POCO_IMPLEMENT_EXCEPTION(UnknownTypeException, DataException, "Type of data unknown")
27POCO_IMPLEMENT_EXCEPTION(ExecutionException, DataException, "Execution error")
28POCO_IMPLEMENT_EXCEPTION(BindingException, DataException, "Binding error")
29POCO_IMPLEMENT_EXCEPTION(ExtractException, DataException, "Extraction error")
30POCO_IMPLEMENT_EXCEPTION(LimitException, DataException, "Limit error")
31POCO_IMPLEMENT_EXCEPTION(NotSupportedException, DataException, "Feature or property not supported")
32POCO_IMPLEMENT_EXCEPTION(SessionUnavailableException, DataException, "Session is unavailable")
33POCO_IMPLEMENT_EXCEPTION(SessionPoolExhaustedException, DataException, "No more sessions available from the session pool")
34POCO_IMPLEMENT_EXCEPTION(SessionPoolExistsException, DataException, "Session already exists in the pool")
35POCO_IMPLEMENT_EXCEPTION(NoDataException, DataException, "No data found")
36POCO_IMPLEMENT_EXCEPTION(LengthExceededException, DataException, "Data too long")
37POCO_IMPLEMENT_EXCEPTION(ConnectionFailedException, DataException, "Connection attempt failed")
38POCO_IMPLEMENT_EXCEPTION(NotConnectedException, DataException, "Not connected to data source")
39
40
41} } // namespace Poco::Data
42