add postgresql

This commit is contained in:
Alex Fabijanic
2018-05-07 15:28:38 +00:00
parent 55e56b668d
commit f75bc3e00d
101 changed files with 20875 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
//
// PostgreSQLException.cpp
//
// Library: Data/PostgreSQL
// Package: PostgreSQL
// Module: PostgreSQLException
//
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Data/PostgreSQL/PostgreSQLException.h"
namespace Poco {
namespace Data {
namespace PostgreSQL {
PostgreSQLException::PostgreSQLException(const std::string& aMessage)
: Poco::Data::DataException(std::string("[PostgreSQL]: ") + aMessage)
{
}
PostgreSQLException::PostgreSQLException(const PostgreSQLException& anException)
: Poco::Data::DataException(anException)
{
}
PostgreSQLException::~PostgreSQLException() throw()
{
}
//
// ConnectionException
//
ConnectionException::ConnectionException(const std::string& aMessage)
: PostgreSQLException(aMessage)
{
}
//
// TransactionException
//
TransactionException::TransactionException(const std::string& aMessage)
: ConnectionException(aMessage)
{
}
//
// StatementException
//
StatementException::StatementException(const std::string& aMessage)
: PostgreSQLException(aMessage)
{
}
} } } // namespace Poco::Data::PostgreSQL