Click here to Skip to main content
15,891,136 members
Articles / Programming Languages / C

Accessing: PostgreSql data base using libpq - C Library.

Rate me:
Please Sign up or sign in to vote.
4.65/5 (12 votes)
18 May 2009CPOL2 min read 69.2K   2K   26  
A set of class to access and manipule PostgreSql data base using libpq - C Library.
//
// Exception.h
//
// DataBaseError imp.
//
// Copyright (c) 2007, Renato Tegon Forti
//
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//


#include <iostream>


class DataBaseError 
	: public std::exception
	/// DataBaseError class
{
public:
	DataBaseError(const std::string& what)
		: exception(what.c_str())
	{
	}
	
}; // DataBaseError

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Systems Engineer
Brazil Brazil
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions