Loading...
Searching...
No Matches
gams::GAMSExceptionExecution Class Reference

Exception class thrown for GAMS execution exceptions. More...

#include <gamsexceptionexecution.h>

Inheritance diagram for gams::GAMSExceptionExecution:
gams::GAMSException

Public Member Functions

 GAMSExceptionExecution (const std::string &what, int exitCode, GAMSWorkspace *ws=nullptr)
 
 GAMSExceptionExecution (const char *what, int exitCode, GAMSWorkspace *ws=nullptr)
 
int rc ()
 Get the return code.
 
- Public Member Functions inherited from gams::GAMSException
 GAMSException (const std::string &what)
 
 GAMSException (const char *what)
 

Detailed Description

Exception class thrown for GAMS execution exceptions.

Definition at line 36 of file gamsexceptionexecution.h.

Constructor & Destructor Documentation

◆ GAMSExceptionExecution() [1/2]

gams::GAMSExceptionExecution::GAMSExceptionExecution ( const std::string &  what,
int  exitCode,
GAMSWorkspace ws = nullptr 
)

Constructor.

Parameters
whatException message.
exitCodeExit Code.
wsActive GAMSWorkspace.

◆ GAMSExceptionExecution() [2/2]

gams::GAMSExceptionExecution::GAMSExceptionExecution ( const char *  what,
int  exitCode,
GAMSWorkspace ws = nullptr 
)

Constructor.

Parameters
whatException message.
exitCodeExit Code.
wsActive GAMSWorkspace.

Member Function Documentation

◆ rc()

int gams::GAMSExceptionExecution::rc ( )

Get the return code.