Embedded Multicore Building Blocks V1.0.0
Public Member Functions | List of all members
embb::base::Exception Class Referenceabstract

Abstract base class for exceptions. More...

#include <exceptions.h>

Public Member Functions

 Exception (const char *message)
 Constructs an exception with a custom message. More...
 
virtual ~Exception () throw ()
 Destructs the exception. More...
 
 Exception (const Exception &e)
 Constructs an exception by copying from an existing one. More...
 
Exceptionoperator= (const Exception &e)
 Assigns an existing exception. More...
 
virtual const char * What () const throw ()
 Returns the error message. More...
 
virtual int Code () const =0
 Returns an integer code representing the exception. More...
 

Detailed Description

Abstract base class for exceptions.

Constructor & Destructor Documentation

embb::base::Exception::Exception ( const char *  message)
explicit

Constructs an exception with a custom message.

Parameters
[in]messageError message
virtual embb::base::Exception::~Exception ( )
throw (
)
virtual

Destructs the exception.

embb::base::Exception::Exception ( const Exception e)

Constructs an exception by copying from an existing one.

Parameters
[in]eException to be copied

Member Function Documentation

Exception& embb::base::Exception::operator= ( const Exception e)

Assigns an existing exception.

Returns
Reference to *this
Parameters
[in]eException to assign
virtual const char* embb::base::Exception::What ( ) const
throw (
)
virtual

Returns the error message.

Returns
Pointer to error message
virtual int embb::base::Exception::Code ( ) const
pure virtual