pelib  2.0.0
pelib::NoDecimalFloatException Class Reference

#include <NoDecimalFloatException.hpp>

List of all members.

Public Member Functions

 NoDecimalFloatException (std::string message, float value)
virtual ~NoDecimalFloatException () throw ()
virtual const char * what () const throw ()
const float getValue ()

Protected Attributes

std::string message
float value

Detailed Description

Exception fired when parsing an integer while a floating-point value was expected and strict mode parsing is enabled

Definition at line 29 of file NoDecimalFloatException.hpp.


Constructor & Destructor Documentation

Constructor

Parameters:
messageHuman-readable message that explains the error
floatingpoint value parsed

Definition at line 32 of file NoDecimalFloatException.cpp.

Destructor

Definition at line 37 of file NoDecimalFloatException.cpp.


Member Function Documentation

Return the floating-point value that was parsed

Definition at line 50 of file NoDecimalFloatException.cpp.

const char * pelib::NoDecimalFloatException::what ( ) const throw () [virtual]

Returns a mesasge that explain why the exception was thrown

Definition at line 40 of file NoDecimalFloatException.cpp.


Member Data Documentation

Human-readable message that explains the reason why the exception was thrown

Definition at line 52 of file NoDecimalFloatException.hpp.

floating-point value that was parsed instead of an integer

Definition at line 55 of file NoDecimalFloatException.hpp.


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