[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/artyom-beilis/cppcms/master/cppcms/cppcms_error.h [Back]  [Original]

///////////////////////////////////////////////////////////////////////////////
//                                                                             
//  Copyright (C) 2008-2012  Artyom Beilis (Tonkikh)      
//                                                                             
//  See accompanying file COPYING.TXT file for licensing details.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCMS_ERROR_H
#define CPPCMS_ERROR_H

#include 
#include 
#include 
namespace cppcms {

///
/// \brief Exception thrown by CppCMS framework.
///
/// Every exception that is thrown from CppCMS modules derived from this exception.
///

class CPPCMS_API cppcms_error : public booster::runtime_error {
	std::string strerror(int err);
public:
	///
	/// Create an object with error code err (errno) and a message \a error
	///
	cppcms_error(int err,std::string const &error);
	///
	/// Create an object with message \a error
	///
	cppcms_error(std::string const &error) : booster::runtime_error(error) {};
};

}
#endif 

Web Proxy Viewer  |  New URL  |  Original Page