SoPlex
Loading...
Searching...
No Matches
SPxException Class Reference

Exception base class. More...

#include <exceptions.h>

Inheritance diagram for SPxException:
SPxInterfaceException SPxInternalCodeException SPxMemoryException SPxStatusException

Public Member Functions

Construction / destruction
 SPxException (const std::string &m="")
 constructor
 SPxException (const SPxException &)=default
 SPxException (SPxException &&)=default
virtual ~SPxException ()=default
 destructor
Access / modification
virtual const std::string & what () const
 returns exception message

Private Attributes

Private data
std::string msg
 Exception message.

Detailed Description

Exception base class.

This class implements a base class for our SoPlex exceptions We provide a what() function which returns the exception message.

Definition at line 41 of file exceptions.h.

Constructor & Destructor Documentation

◆ SPxException() [1/3]

SPxException ( const std::string & m = "")

constructor

The constructor receives an optional string as an exception message.

Definition at line 57 of file exceptions.h.

References msg.

Referenced by SPxException(), SPxException(), SPxInterfaceException::SPxInterfaceException(), SPxInternalCodeException::SPxInternalCodeException(), SPxMemoryException::SPxMemoryException(), and SPxStatusException::SPxStatusException().

◆ SPxException() [2/3]

SPxException ( const SPxException & )
default

References SPxException().

◆ SPxException() [3/3]

SPxException ( SPxException && )
default

References SPxException().

◆ ~SPxException()

virtual ~SPxException ( )
virtualdefault

destructor

Member Function Documentation

◆ what()

virtual const std::string & what ( ) const
virtual

returns exception message

Definition at line 68 of file exceptions.h.

References msg.

Referenced by runSoPlex().

Member Data Documentation

◆ msg

std::string msg
private

Exception message.

Definition at line 48 of file exceptions.h.

Referenced by SPxException(), and what().