bpp-core  2.2.0
bpp::ZeroDivisionException Class Reference

The base class exception for zero division error. More...

#include <Bpp/Exceptions.h>

+ Inheritance diagram for bpp::ZeroDivisionException:
+ Collaboration diagram for bpp::ZeroDivisionException:

Public Member Functions

 ZeroDivisionException (const char *text)
 Build a new ZeroDivisionException. More...
 
 ZeroDivisionException (const std::string &text)
 Build a new ZeroDivisionException. More...
 
virtual ~ZeroDivisionException () throw ()
 
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition). More...
 

Protected Attributes

std::string message_
 

Detailed Description

The base class exception for zero division error.

Definition at line 149 of file Exceptions.h.

Constructor & Destructor Documentation

◆ ZeroDivisionException() [1/2]

bpp::ZeroDivisionException::ZeroDivisionException ( const char *  text)
inline

Build a new ZeroDivisionException.

Parameters
textA message to be passed to the exception hierarchy.

Definition at line 159 of file Exceptions.h.

◆ ZeroDivisionException() [2/2]

bpp::ZeroDivisionException::ZeroDivisionException ( const std::string &  text)
inline

Build a new ZeroDivisionException.

Parameters
textA message to be passed to the exception hierarchy.

Definition at line 166 of file Exceptions.h.

◆ ~ZeroDivisionException()

virtual bpp::ZeroDivisionException::~ZeroDivisionException ( )
throw (
)
inlinevirtual

Definition at line 168 of file Exceptions.h.

Member Function Documentation

◆ what()

const char* bpp::Exception::what ( ) const
throw (
)
inlineinherited

Method to get the message of the exception (STL method redefinition).

Returns
The message passed to the exception hierarchy.

Definition at line 87 of file Exceptions.h.

References bpp::Exception::message_.

Member Data Documentation

◆ message_

std::string bpp::Exception::message_
protectedinherited

Definition at line 61 of file Exceptions.h.

Referenced by bpp::Exception::what().


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