Public Types | Public Member Functions

base::ConfigException Class Reference

Configuration exception. More...

#include <libppbase/base/ConfigException.h>

Inheritance diagram for base::ConfigException:
base::Exception

List of all members.

Public Types

enum  { errIO = 1, errNoSuchVariable, errTypeCast }
 

error codes

More...

Public Member Functions

 ConfigException (int errcode, const char *fmt=NULL,...)
 Constructor.
 ConfigException (int errcode, const Exception &ex, const char *fmt=NULL,...)
 Constructor that takes a nested exception.

Detailed Description

Configuration exception.

Author:
Christoph Schwarz
Version:
$Id: ConfigException.h 21 2010-09-05 04:18:17Z cschwarz1 $

Member Enumeration Documentation

anonymous enum

error codes

Enumerator:
errIO 

i/o error on config file

errNoSuchVariable 

configuration variable does not exist

errTypeCast 

type cast error


Constructor & Destructor Documentation

base::ConfigException::ConfigException ( int  errcode,
const char *  fmt = NULL,
  ... 
)

Constructor.

Parameters:
errcode the error code
fmt printf-like format string to take an additional error message
... additional arguments for the format string
base::ConfigException::ConfigException ( int  errcode,
const Exception ex,
const char *  fmt = NULL,
  ... 
)

Constructor that takes a nested exception.

Parameters:
errcode the error code
ex the nested exception
fmt printf-like format string to take an additional error message
... additional arguments for the format string

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