Scippy

SCIP

Solving Constraint Integer Programs

SCIPException Class Reference

Detailed Description

exception handling class for SCIP

this class enables you to handle the return code of SCIP functions in a C++ way

Definition at line 114 of file scip_exception.hpp.

exception handling class for SCIP More...

#include <scip_exception.hpp>

Public Member Functions

 SCIPException (SCIP_RETCODE retcode)
 constructs a SCIPEexception from an error code More...
 
const char * what (void) const throw ()
 returns the error message More...
 
SCIP_RETCODE getRetcode (void) const
 get method for _retcode More...
 
 ~SCIPException (void)
 

Constructor & Destructor Documentation

◆ SCIPException()

SCIPException::SCIPException ( SCIP_RETCODE  retcode)
inline

constructs a SCIPEexception from an error code

this constructs a new SCIPException from given error code

Parameters
[in]retcodeSCIP error code

Definition at line 127 of file scip_exception.hpp.

References NULL, SCIP_MSG_MAX, SCIPgetErrorString(), and SCIPsnprintf().

◆ ~SCIPException()

SCIPException::~SCIPException ( void  )
inline

destructor

Definition at line 150 of file scip_exception.hpp.

Member Function Documentation

◆ what()

const char * SCIPException::what ( void  ) const
throw (
)
inline

returns the error message

Returns
error message

this overrides the corresponding method of std::exception in order to allow you to catch all of your exceptions as std::exception

Definition at line 140 of file scip_exception.hpp.

Referenced by main(), and scipexamples::QueensSolver::~QueensSolver().

◆ getRetcode()

SCIP_RETCODE SCIPException::getRetcode ( void  ) const
inline

get method for _retcode

Returns
stored SCIP_RETCODE

Definition at line 147 of file scip_exception.hpp.

Referenced by main().