SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::base::algorithm_exception Class Reference

Exception that is thrown in case of an application failure. More...

#include <algorithm_exception.hpp>

Inheritance diagram for sgpp::base::algorithm_exception:

Public Member Functions

 algorithm_exception () noexcept
 Standard Constructor.
 
 algorithm_exception (const char *msg) noexcept
 Constructor.
 
const char * what () const noexcept override
 throw method that have to be implemented
 
 ~algorithm_exception () noexcept override
 Destructor.
 

Protected Attributes

const char * msg
 the exception message
 

Detailed Description

Exception that is thrown in case of an application failure.

Constructor & Destructor Documentation

◆ algorithm_exception() [1/2]

sgpp::base::algorithm_exception::algorithm_exception ( const char *  msg)
inlineexplicitnoexcept

Constructor.

Parameters
msgthe exception message

◆ algorithm_exception() [2/2]

sgpp::base::algorithm_exception::algorithm_exception ( )
inlinenoexcept

Standard Constructor.

◆ ~algorithm_exception()

sgpp::base::algorithm_exception::~algorithm_exception ( )
inlineoverridenoexcept

Destructor.

Member Function Documentation

◆ what()

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

throw method that have to be implemented

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

References msg.

Member Data Documentation

◆ msg

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

the exception message

Referenced by what().


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