scip_exception.hpp
Go to the documentation of this file.
27// unfortunately SCIP has no method to get the string of an error code, you can just print it to a file
37 * @param[out] buffer_str buffer to character array to store translated message, this must be at least of size SCIP_MSG_MAX
76 (void) SCIPsnprintf(buffer_str, buffersize, "method cannot be called at this time in solution process");
138 * this overrides the corresponding method of std::exception in order to allow you to catch all of your exceptions as std::exception
156 * this macro calls a SCIP function and throws an instance of SCIPException if anything went wrong
SCIPException(SCIP_RETCODE retcode)
constructs a SCIPEexception from an error code
Definition: scip_exception.hpp:127
internal miscellaneous methods
SCIP callable library.
char * SCIPgetErrorString(SCIP_RETCODE retcode, char *buffer_str, int buffersize)
translates a SCIP_RETCODE into an error string
Definition: scip_exception.hpp:40
#define SCIP_MSG_MAX
maximal number of characters in an error messages
Definition: scip_exception.hpp:30