SG++-Doxygen-Documentation
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

◆ data_exception() [1/2]

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

Create a new exception (constructor) with some message.

Parameters
msgThe exception message

◆ data_exception() [2/2]

sgpp::base::data_exception::data_exception ( )
throw (
)
inline

Create default exception (constructor).

◆ ~data_exception()

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

Destructor.

Member Function Documentation

◆ what()

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

◆ msg

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: