ROC++  v1.2
Automatic Robust Optimization in C++
MyException Struct Reference

Structure for throwing exceptions based on strings. More...

#include <Exceptions.hpp>

Inheritance diagram for MyException:
Collaboration diagram for MyException:

Public Member Functions

 MyException (string cc)
 Constructor of the MyException structure. More...
 
 ~MyException () throw ()
 Destructor of the MyException structure. More...
 
const char * what () const throw ()
 Throw exception function. More...
 

Private Attributes

string m_c
 

Detailed Description

Structure for throwing exceptions based on strings.

Constructor & Destructor Documentation

◆ MyException()

MyException::MyException ( string  cc)
inline

Constructor of the MyException structure.

Parameters
ccstring containing the exception to throw

◆ ~MyException()

MyException::~MyException ( )
throw (
)
inline

Destructor of the MyException structure.

Member Function Documentation

◆ what()

const char* MyException::what ( ) const
throw (
)
inline

Throw exception function.

Returns
character representation of string to throw

Member Data Documentation

◆ m_c

string MyException::m_c
private