bpp-core  2.2.0
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 175 of file Exceptions.h.

Constructor & Destructor Documentation

◆ BadIntegerException() [1/2]

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() [2/2]

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.

◆ ~BadIntegerException()

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

Definition at line 199 of file Exceptions.h.

Member Function Documentation

◆ getBadInteger()

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

Get the integer that threw this exception.

Returns
The faulty integer.

Definition at line 208 of file Exceptions.h.

References badInt_.

◆ 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

◆ badInt_

int bpp::BadIntegerException::badInt_
protected

Definition at line 179 of file Exceptions.h.

Referenced by getBadInteger().

◆ 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 files: