bpp-core  2.2.0
bpp::BadSizeException Class Reference

Wrong size exception class. More...

#include <Bpp/Exceptions.h>

+ Inheritance diagram for bpp::BadSizeException:
+ Collaboration diagram for bpp::BadSizeException:

Public Member Functions

 BadSizeException (const std::string &text, size_t badSize, size_t correctSize)
 Build a new BadSizeException. More...
 
virtual ~BadSizeException () throw ()
 
size_t getBadSize () const
 
size_t getCorrectSize () const
 
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition). More...
 

Protected Attributes

size_t badSize_
 
size_t correctSize_
 
std::string message_
 

Detailed Description

Wrong size exception class.

Definition at line 334 of file Exceptions.h.

Constructor & Destructor Documentation

◆ BadSizeException()

BadSizeException::BadSizeException ( const std::string &  text,
size_t  badSize,
size_t  correctSize 
)

Build a new BadSizeException.

Parameters
textA message to be passed to the exception hierarchy.
badSizeThe faulty size.
correctSizeThe expected size.

Definition at line 96 of file Exceptions.cpp.

◆ ~BadSizeException()

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

Definition at line 351 of file Exceptions.h.

Member Function Documentation

◆ getBadSize()

size_t bpp::BadSizeException::getBadSize ( ) const
inline

Definition at line 355 of file Exceptions.h.

References badSize_.

◆ getCorrectSize()

size_t bpp::BadSizeException::getCorrectSize ( ) const
inline

Definition at line 356 of file Exceptions.h.

References correctSize_.

◆ 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

◆ badSize_

size_t bpp::BadSizeException::badSize_
protected

Definition at line 338 of file Exceptions.h.

Referenced by getBadSize().

◆ correctSize_

size_t bpp::BadSizeException::correctSize_
protected

Definition at line 338 of file Exceptions.h.

Referenced by getCorrectSize().

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