PolyBoRi
Public Types | Public Member Functions | List of all members
polybori::PBoRiGenericError< ErrorCode > Class Template Reference

This template class is used for polybori's exception handling. More...

#include <PBoRiGenericError.h>

Inheritance diagram for polybori::PBoRiGenericError< ErrorCode >:
polybori::PBoRiError

Public Types

enum  { error_code = ErrorCode }
typedef CTypes::errornum_type errornum_type
 adopt global error code enumeration
typedef CTypes::errortext_type errortext_type
 adopt global error text type
- Public Types inherited from polybori::PBoRiError
typedef CTypes::errornum_type errornum_type
 adopt global error code enumeration
typedef CTypes::errortext_type errortext_type
 adopt global error text type
typedef PBoRiError self
 generic access to type of *this

Public Member Functions

 PBoRiGenericError ()
 Default constructor.
- Public Member Functions inherited from polybori::PBoRiError
 PBoRiError (errornum_type err=CTypes::alright)
 construct instance from error code
 PBoRiError (const self &)
 copy constructor
 ~PBoRiError ()
 destructor
errornum_type code () const
 get error code
errortext_type text () const
 get error text

Additional Inherited Members

- Protected Attributes inherited from polybori::PBoRiError
errornum_type error

Detailed Description

template<CTypes::errornum_type ErrorCode>
class polybori::PBoRiGenericError< ErrorCode >

This template class is used for polybori's exception handling.

It's mainly a wrapper for PBoRiError, which allows compile-time distinction of errors.

Member Typedef Documentation

template<CTypes::errornum_type ErrorCode>
typedef CTypes::errornum_type polybori::PBoRiGenericError< ErrorCode >::errornum_type

adopt global error code enumeration

template<CTypes::errornum_type ErrorCode>
typedef CTypes::errortext_type polybori::PBoRiGenericError< ErrorCode >::errortext_type

adopt global error text type

Member Enumeration Documentation

template<CTypes::errornum_type ErrorCode>
anonymous enum
Enumerator:
error_code 

Constructor & Destructor Documentation

template<CTypes::errornum_type ErrorCode>
polybori::PBoRiGenericError< ErrorCode >::PBoRiGenericError ( )
inline

Default constructor.


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