1//
2// SQLException.cpp
3//
4// Library: SQL
5// Package: SQLCore
6// Module: SQLException
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/SQL/SQLException.h"
16#include <typeinfo>
17
18
19namespace Poco {
20namespace SQL {
21
22
23POCO_IMPLEMENT_EXCEPTION(SQLException, Poco::IOException, "Database Exception")
24POCO_IMPLEMENT_EXCEPTION(RowDataMissingException, SQLException, "Data for row missing")
25POCO_IMPLEMENT_EXCEPTION(UnknownDataBaseException, SQLException, "Type of data base unknown")
26POCO_IMPLEMENT_EXCEPTION(UnknownTypeException, SQLException, "Type of data unknown")
27POCO_IMPLEMENT_EXCEPTION(ExecutionException, SQLException, "Execution error")
28POCO_IMPLEMENT_EXCEPTION(BindingException, SQLException, "Binding error")
29POCO_IMPLEMENT_EXCEPTION(ExtractException, SQLException, "Extraction error")
30POCO_IMPLEMENT_EXCEPTION(LimitException, SQLException, "Limit error")
31POCO_IMPLEMENT_EXCEPTION(NotSupportedException, SQLException, "Feature or property not supported")
32POCO_IMPLEMENT_EXCEPTION(SessionUnavailableException, SQLException, "Session is unavailable")
33POCO_IMPLEMENT_EXCEPTION(SessionPoolExhaustedException, SQLException, "No more sessions available from the session pool")
34POCO_IMPLEMENT_EXCEPTION(SessionPoolExistsException, SQLException, "Session already exists in the pool")
35POCO_IMPLEMENT_EXCEPTION(NoSQLException, SQLException, "No data found")
36POCO_IMPLEMENT_EXCEPTION(LengthExceededException, SQLException, "Data too long")
37POCO_IMPLEMENT_EXCEPTION(ConnectionFailedException, SQLException, "Connection attempt failed")
38POCO_IMPLEMENT_EXCEPTION(NotConnectedException, SQLException, "Not connected to data source")
39
40
41} } // namespace Poco::SQL
42