PhraseHunter::Exceptions::Exception Class Reference

Base class for Phrasehunter exceptions. More...

#include <phexception.h>

Inherited by PhraseHunter::Exceptions::CorpusError, PhraseHunter::Exceptions::DatabaseError, PhraseHunter::Exceptions::FileError, and PhraseHunter::Exceptions::UnicodeError.

Inheritance diagram for PhraseHunter::Exceptions::Exception:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Exception (const std::string &msg)
const char * what () const

Private Attributes

char m_msg [ERRMSG_SIZE]

Static Private Attributes

static const unsigned int ERRMSG_SIZE = 40

Detailed Description

Base class for Phrasehunter exceptions.

Definition at line 32 of file phexception.h.


Constructor & Destructor Documentation

PhraseHunter::Exceptions::Exception::Exception ( const std::string &  msg  )  [inline]

Definition at line 38 of file phexception.h.

References ERRMSG_SIZE, and m_msg.


Member Function Documentation

const char* PhraseHunter::Exceptions::Exception::what (  )  const [inline]

Definition at line 49 of file phexception.h.

References m_msg.

Referenced by PhSearchImpl::fileOpen(), and main().


Member Data Documentation

const unsigned int PhraseHunter::Exceptions::Exception::ERRMSG_SIZE = 40 [static, private]

Definition at line 34 of file phexception.h.

Referenced by Exception().

char PhraseHunter::Exceptions::Exception::m_msg[ERRMSG_SIZE] [private]

Definition at line 36 of file phexception.h.

Referenced by Exception(), and what().


The documentation for this class was generated from the following file:
Generated on Thu Dec 21 16:14:44 2006 for The Phrasehunter by  doxygen 1.5.1