HARDT - The Ham Radio DSP Toolkit
Public Member Functions | Protected Attributes | List of all members
HException Class Reference

#include <hexceptions.h>

Inheritance diagram for HException:
Inheritance graph
[legend]
Collaboration diagram for HException:
Collaboration graph
[legend]

Public Member Functions

 HException (const char *reason, const char *type)
 
const char * what () const throw ()
 
const char * type () const throw ()
 

Protected Attributes

const char * _why
 
const char * _type
 

Detailed Description

Base class for specific exceptions thrown by any Hardt class. This type can not be instantianted directly.

Examples
main.cpp.

Constructor & Destructor Documentation

◆ HException()

HException::HException ( const char *  reason,
const char *  type 
)

Construct a new HException object

Member Function Documentation

◆ type()

const char * HException::type ( ) const
throw (
)

Return the exception type

Examples
main.cpp.

◆ what()

const char * HException::what ( ) const
throw (
)

Return the exception reason

Examples
main.cpp.

Member Data Documentation

◆ _type

const char* HException::_type
protected

Contains the exception type, if one needs to find out which exception is being thrown

◆ _why

const char* HException::_why
protected

Contains the exception reason


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