MeLOn
Loading...
Searching...
No Matches
MelonException Class Reference

This class defines the exceptions thrown by FeedForwardNet. More...

#include <exceptions.h>

Inheritance diagram for MelonException:

Public Member Functions

 MelonException (const std::string &arg)
 Constructor used for forwarding.
 
 MelonException (const std::string &arg, const std::exception &e)
 Constructor used for forwarding.
 
 MelonException (const std::string &arg, const std::exception *e)
 Constructor used printing a FeedForwardNet Exception.
 
const char * what () const noexcept
 Function to return the error message.
 

Private Member Functions

 MelonException ()
 

Private Attributes

std::string _msg { "" }
 

Detailed Description

This class defines the exceptions thrown by FeedForwardNet.

The class contains different constructors. The first parameter is always the error message. Additionally, the constructor can take an exception as second argument. If done so, the type of the exception object and its what() will be saved in the error message as well.

Constructor & Destructor Documentation

◆ MelonException() [1/4]

MelonException::MelonException ( )
private

◆ MelonException() [2/4]

MelonException::MelonException ( const std::string & arg)
inlineexplicit

Constructor used for forwarding.

Parameters
[in]argis a string holding an error message

◆ MelonException() [3/4]

MelonException::MelonException ( const std::string & arg,
const std::exception & e )
inline

Constructor used for forwarding.

Parameters
[in]argis a string holding an error message
[in]eholds the exception

◆ MelonException() [4/4]

MelonException::MelonException ( const std::string & arg,
const std::exception * e )
inline

Constructor used printing a FeedForwardNet Exception.

Parameters
[in]argis a string holding an error message
[in]eholds the exception

Member Function Documentation

◆ what()

const char * MelonException::what ( ) const
inlinenoexcept

Function to return the error message.

Returns
Error message.

Member Data Documentation

◆ _msg

std::string MelonException::_msg { "" }
private

string holding the exception message


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