SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
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 () noexcept
 Create default exception (constructor).
 
 data_exception (const char *msg) noexcept
 Create a new exception (constructor) with some message.
 
const char * what () const noexcept override
 Return message of exception object.
 
 ~data_exception () noexcept override
 Destructor.
 

Protected Attributes

const char * msg
 the exception message
 

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)
inlineexplicitnoexcept

Create a new exception (constructor) with some message.

Parameters
msgThe exception message

◆ data_exception() [2/2]

sgpp::base::data_exception::data_exception ( )
inlinenoexcept

Create default exception (constructor).

◆ ~data_exception()

sgpp::base::data_exception::~data_exception ( )
inlineoverridenoexcept

Destructor.

Member Function Documentation

◆ what()

const char * sgpp::base::data_exception::what ( ) const
inlineoverridenoexcept

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: