1 #ifndef _USER_ERRORS_H_ 2 #define _USER_ERRORS_H_ 83 static void assertTrue(
bool statement,
errorType errorIfAssertionFails, std::string errorFunc,
84 std::string errorMsgPrefix=
"", std::string errorMsgSuffix=
"");
100 static void throwError(std::string errorFunc,
errorType error, std::string errorMsgPrefix=
"",
101 std::string errorMsgSuffix=
"");
parameter cannot have smaller vaule than some vaule
parameters must be identical
parameters cannot be identical
parameter cannot be of type UNKNOWN
function cannot be called in certain mode
errorType
an enum of all possible error codes
function cannot be called in certain state
function cannot be called because network has already bun run
parameter cannot have larger vaule than some vaule
some parameters must have the same sign
the specified group id is unknown
parameter cannot be set to
parameter must be in some range
parameter cannot have NULL value
must be in custom logger mode
parameter must be smaller than
parameter cannot have positive value (opposite to "must be", but includes zero)
parameter must be larger than
function can only be called in certain state
keyword ALL is not allowed for this variable
cannot be connected twice
cannot be both synaptically and compartmentally connected
parameter must have negative value
parameter must have positive value
function can only be called in certain mode
parameter cannot have negative value (opposite to "must be", but includes zero)
Static Class for handling user errors.