CAppException Class Reference
[Application Framework]

Search Toolkit Book for CAppException

#include <ncbiapp.hpp>

Inheritance diagram for CAppException:

Inheritance graph
[legend]
Collaboration diagram for CAppException:

Collaboration graph
[legend]
List of all members.

Detailed Description

CAppException --.

Define exceptions generated by CNcbiApplication.

CAppException inherits its basic functionality from CCoreException and defines additional error codes for applications.

Definition at line 76 of file ncbiapp.hpp.

Public Types

enum  EErrCode {
  eUnsetArgs, eSetupDiag, eLoadConfig, eSecond,
  eNoRegistry
}
 Error types that an application can generate. More...

Public Member Functions

virtual const char * GetErrCodeString (void) const
 Translate from the error code value to its string representation.
 NCBI_EXCEPTION_DEFAULT (CAppException, CCoreException)


Member Enumeration Documentation

enum CAppException::EErrCode
 

Error types that an application can generate.

These error conditions are checked for and caught inside AppMain().

Enumerator:
eUnsetArgs  Command-line argument description not found.
eSetupDiag  Application diagnostic stream setup failed.
eLoadConfig  Registry data failed to load from config file.
eSecond  Second instance of CNcbiApplication is prohibited.
eNoRegistry  Registry file cannot be opened.

Reimplemented from CCoreException.

Definition at line 82 of file ncbiapp.hpp.


Member Function Documentation

const char * CAppException::GetErrCodeString void   )  const [virtual]
 

Translate from the error code value to its string representation.

Reimplemented from CCoreException.

Definition at line 1165 of file ncbiapp.cpp.

References eLoadConfig, eNoRegistry, eSecond, eSetupDiag, eUnsetArgs, CCoreException::GetErrCode(), and CException::GetErrCodeString().

CAppException::NCBI_EXCEPTION_DEFAULT CAppException  ,
CCoreException 
 


The documentation for this class was generated from the following files:
Generated on Mon Dec 7 10:00:22 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:22:30 2009 by modify_doxy.py rev. 173732