bpp-core  2.1.0
 All Classes Namespaces Files Functions Variables Typedefs Friends
bpp::BadIntegerException Class Reference

Number exception: integers. More...

#include <Bpp/Exceptions.h>

+ Inheritance diagram for bpp::BadIntegerException:
+ Collaboration diagram for bpp::BadIntegerException:

Public Member Functions

 BadIntegerException (const char *text, int badInt)
 Build a new BadIntegerException. More...
 
 BadIntegerException (const std::string &text, int badInt)
 Build a new BadIntegerException. More...
 
virtual ~BadIntegerException () throw ()
 
int getBadInteger () const
 Get the integer that threw this exception. More...
 
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition). More...
 

Protected Attributes

int badInt_
 
std::string message_
 

Detailed Description

Number exception: integers.

Definition at line 174 of file Exceptions.h.

Constructor & Destructor Documentation

BadIntegerException::BadIntegerException ( const char *  text,
int  badInt 
)

Build a new BadIntegerException.

Parameters
textA message to be passed to the exception hierarchy.
badIntThe faulty integer.

Definition at line 50 of file Exceptions.cpp.

BadIntegerException::BadIntegerException ( const std::string &  text,
int  badInt 
)

Build a new BadIntegerException.

Parameters
textA message to be passed to the exception hierarchy.
badIntThe faulty integer.

Definition at line 54 of file Exceptions.cpp.

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

Definition at line 198 of file Exceptions.h.

Member Function Documentation

int bpp::BadIntegerException::getBadInteger ( ) const
inline

Get the integer that threw this exception.

Returns
The faulty integer.

Definition at line 207 of file Exceptions.h.

References badInt_.

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 86 of file Exceptions.h.

References bpp::Exception::message_.

Member Data Documentation

int bpp::BadIntegerException::badInt_
protected

Definition at line 178 of file Exceptions.h.

Referenced by getBadInteger().

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

Definition at line 60 of file Exceptions.h.

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


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