tnt::NotFoundException Class Reference

HTTP-error 404. More...

#include <tnt/httperror.h>

Inheritance diagram for tnt::NotFoundException:
tnt::HttpError tnt::HttpMessage

Public Member Functions

 NotFoundException (const std::string &url_, const std::string &vhost=std::string())
 ~NotFoundException () throw ()
const std::string & getUrl () const
const std::string & getVHost () const
- Public Member Functions inherited from tnt::HttpError
 HttpError (unsigned errcode)
 HttpError (unsigned errcode, const std::string &msg)
 HttpError (unsigned errcode, const std::string &msg, const std::string &b)
 ~HttpError () throw ()
const char * what () const throw ()
std::string getErrcodeStr () const
unsigned getErrcode () const
std::string getErrmsg () const
const std::string & getBody () const
 returns the body of the message.
- Public Member Functions inherited from tnt::HttpMessage
 HttpMessage ()
virtual ~HttpMessage ()
virtual void clear ()
 Removes all request-specific content.
bool hasHeader (const char *key) const
 returns true, if the message has the specified header.
bool hasHeader (const std::string &key) const
const char * getHeader (const char *key, const char *def="") const
 returns the content of the specified header or the passed default when not set.
unsigned short getMajorVersion () const
 returns the http-major-version-number.
unsigned short getMinorVersion () const
 returns the http-minor-version-number.
void setVersion (unsigned short major, unsigned short minor)
 sets the http-version-number
header_type::const_iterator header_begin () const
 Returns a constant Iterator, which points to the first header.
header_type::const_iterator header_end () const
 Returns a constant Iterator, which points past the last header.
void setHeader (const std::string &key, const std::string &value, bool replace=true)
 Adds the specified header to the message.
void removeHeader (const std::string &key)
 Removes the header with the specified name from the message.
std::string dumpHeader () const
 Returns all headers as a string.
void dumpHeader (std::ostream &out) const
 Prints all headers to the specified output-stream.

Additional Inherited Members

- Public Types inherited from tnt::HttpMessage
typedef Messageheader header_type
- Static Public Member Functions inherited from tnt::HttpMessage
static std::string htdate (time_t t)
 Returns a properly formatted date-string, as needed in http.
static std::string htdate (struct::tm *tm)
 Returns a properly formatted date-string, as needed in http.
static std::string htdateCurrent ()
 Returns a properly formatted current time-string, as needed in http.
static bool checkUrl (const std::string &url)
 Checks for double-dot-url.
- Protected Attributes inherited from tnt::HttpMessage
header_type header
Cookies httpcookies

Detailed Description

HTTP-error 404.

Constructor & Destructor Documentation

tnt::NotFoundException::NotFoundException ( const std::string &  url_,
const std::string &  vhost = std::string() 
)
explicit
tnt::NotFoundException::~NotFoundException ( ) throw ()
inline

Member Function Documentation

const std::string& tnt::NotFoundException::getUrl ( ) const
inline
const std::string& tnt::NotFoundException::getVHost ( ) const
inline

The documentation for this class was generated from the following file: