1 #ifndef _USER_ERRORS_H_ 2 #define _USER_ERRORS_H_ 82 static void assertFalse(
bool statement,
errorType errorIfAssertionFails,
const std::string& errorFunc,
83 const std::string& errorMsgPrefix=
"",
const std::string& errorMsgSuffix=
"");
99 static void assertTrue(
bool statement,
errorType errorIfAssertionFails,
const std::string& errorFunc,
100 const std::string& errorMsgPrefix=
"",
const std::string& errorMsgSuffix=
"");
116 static void throwError(
const std::string& errorFunc,
errorType error,
const std::string& errorMsgPrefix=
"",
117 const 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
function cannot be applied to neuron type
must be in custom logger mode
static void assertFalse(bool statement, errorType errorIfAssertionFails, const std::string &errorFunc, const std::string &errorMsgPrefix="", const std::string &errorMsgSuffix="")
Checks whether assertion statement is false, else throws error.
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
static void assertTrue(bool statement, errorType errorIfAssertionFails, const std::string &errorFunc, const std::string &errorMsgPrefix="", const std::string &errorMsgSuffix="")
Checks whether assertion statement is true, else throws error.
parameter cannot have negative value (opposite to "must be", but includes zero)
Static Class for handling user errors.