SG++
sgpp::base::data_exception Class Reference

Exception that is thrown in case of a data failure (conversion, creation, ...). More...

#include <data_exception.hpp>

Inheritance diagram for sgpp::base::data_exception:

Public Member Functions

 data_exception (const char *msg) throw ()
 Create a new exception (constructor) with some message. More...
 
 data_exception () throw ()
 Create default exception (constructor). More...
 
const char * what () const override throw ()
 Return message of exception object. More...
 
 ~data_exception () override throw ()
 Destructor. More...
 

Protected Attributes

const char * msg
 the exception message More...
 

Detailed Description

Exception that is thrown in case of a data failure (conversion, creation, ...).

Constructor & Destructor Documentation

sgpp::base::data_exception::data_exception ( const char *  msg)
throw (
)
inlineexplicit

Create a new exception (constructor) with some message.

Parameters
msgThe exception message
sgpp::base::data_exception::data_exception ( )
throw (
)
inline

Create default exception (constructor).

sgpp::base::data_exception::~data_exception ( )
throw (
)
inlineoverride

Destructor.

Member Function Documentation

const char* sgpp::base::data_exception::what ( ) const
throw (
)
inlineoverride

Return message of exception object.

Returns
Returns the message specified in the constructor, otherwise a general text

References msg.

Member Data Documentation

const char* sgpp::base::data_exception::msg
protected

the exception message

Referenced by what().


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