30#define SCIP_MSG_MAX 100
46 (void)
SCIPsnprintf(buffer_str, buffersize,
"normal termination");
49 (void)
SCIPsnprintf(buffer_str, buffersize,
"unspecified error");
52 (void)
SCIPsnprintf(buffer_str, buffersize,
"insufficient memory error");
55 (void)
SCIPsnprintf(buffer_str, buffersize,
"file read error");
58 (void)
SCIPsnprintf(buffer_str, buffersize,
"file write error");
61 (void)
SCIPsnprintf(buffer_str, buffersize,
"branch error");
64 (void)
SCIPsnprintf(buffer_str, buffersize,
"file not found error");
67 (void)
SCIPsnprintf(buffer_str, buffersize,
"cannot create file");
70 (void)
SCIPsnprintf(buffer_str, buffersize,
"error in LP solver");
73 (void)
SCIPsnprintf(buffer_str, buffersize,
"no problem exists");
76 (void)
SCIPsnprintf(buffer_str, buffersize,
"method cannot be called at this time in solution process");
79 (void)
SCIPsnprintf(buffer_str, buffersize,
"method cannot be called with this type of data");
82 (void)
SCIPsnprintf(buffer_str, buffersize,
"method returned an invalid result code");
85 (void)
SCIPsnprintf(buffer_str, buffersize,
"a required plugin was not found");
88 (void)
SCIPsnprintf(buffer_str, buffersize,
"the parameter with the given name was not found");
91 (void)
SCIPsnprintf(buffer_str, buffersize,
"the parameter is not of the expected type");
94 (void)
SCIPsnprintf(buffer_str, buffersize,
"the value is invalid for the given parameter");
97 (void)
SCIPsnprintf(buffer_str, buffersize,
"the given key is already existing in table");
100 (void)
SCIPsnprintf(buffer_str, buffersize,
"maximal branching depth level exceeded");
103 (void)
SCIPsnprintf(buffer_str, buffersize,
"function not implemented");
140 const char*
what(
void)
const throw() {
return _msg;}
159#define SCIP_CALL_EXC(x) \
161 SCIP_RETCODE retcode; \
162 if( (retcode = (x)) != SCIP_OKAY) \
164 throw SCIPException(retcode); \
exception handling class for SCIP
SCIPException(SCIP_RETCODE retcode)
constructs a SCIPEexception from an error code
const char * what(void) const
returns the error message
SCIP_RETCODE getRetcode(void) const
get method for _retcode
int SCIPsnprintf(char *t, int len, const char *s,...)
internal miscellaneous methods
char * SCIPgetErrorString(SCIP_RETCODE retcode, char *buffer_str, int buffersize)
translates a SCIP_RETCODE into an error string
#define SCIP_MSG_MAX
maximal number of characters in an error messages
@ SCIP_PARAMETERWRONGTYPE
@ SCIP_KEYALREADYEXISTING
enum SCIP_Retcode SCIP_RETCODE