00001 #ifndef DV_CGIERROR_H 00002 #define DV_CGIERROR_H 00003 // $Id: cgierror.h,v 1.4 2002/10/18 19:08:59 dvermeir Exp $ 00004 00005 #include <stdexcept> 00006 #include <string> 00007 00008 /*! \file 00009 Dv::Cgi::CgiError is an runtime_error exception class that may 00010 be thrown by some dvcgi functions. 00011 */ 00012 namespace Dv { namespace Cgi { 00013 00014 //! A runtime exception thrown by some cgi-related functions. 00015 class CgiError: public std::runtime_error { 00016 public: 00017 //! Name of class, is prepended to each message argument of the constructor. 00018 static const std::string NAME; 00019 //! Constructor, prepends NAME to message to obtain runtime_error::what(). 00020 CgiError(const std::string& message): std::runtime_error(NAME+": "+message) {} 00021 }; 00022 00023 }} 00024 #endif
dvcgi-0.5.14 | [22 January, 2006] |