CARLsim
5.0.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file. 1 #ifndef _USER_ERRORS_H_
2 #define _USER_ERRORS_H_
81 static void assertTrue(
bool statement,
errorType errorIfAssertionFails, std::string errorFunc,
82 std::string errorMsgPrefix=
"", std::string errorMsgSuffix=
"");
98 static void throwError(std::string errorFunc,
errorType error, std::string errorMsgPrefix=
"",
99 std::string errorMsgSuffix=
"");
@ CANNOT_BE_OFF
parameter cannot be off
@ CANNOT_BE_LARGER
parameter cannot have larger vaule than some vaule
@ CANNOT_BE_SET_TO
parameter cannot be set to
@ CANNOT_BE_POSITIVE
parameter cannot have positive value (opposite to "must be", but includes zero)
@ CANNOT_BE_IDENTICAL
parameters cannot be identical
@ CANNOT_BE_ON
parameter cannot be on
@ MUST_BE_SMALLER
parameter must be smaller than
@ MUST_BE_IDENTICAL
parameters must be identical
@ UNKNOWN_GROUP_ID
the specified group id is unknown
@ CAN_ONLY_BE_CALLED_IN_STATE
function can only be called in certain state
@ MUST_BE_POSITIVE
parameter must have positive value
@ NETWORK_ALREADY_RUN
function cannot be called because network has already bun run
@ CANNOT_BE_CALLED_IN_STATE
function cannot be called in certain state
@ MUST_BE_ON
parameter must be on
@ FILE_CANNOT_CREATE
could not create a file
@ MUST_BE_IN_RANGE
parameter must be in some range
@ CANNOT_BE_NULL
parameter cannot have NULL value
@ FILE_CANNOT_OPEN
could not open file
@ CANNOT_BE_CONN_TWICE
cannot be connected twice
@ IS_DEPRECATED
deprecated function
@ MUST_BE_LOGGER_CUSTOM
must be in custom logger mode
@ WRONG_NEURON_TYPE
function cannot be applied to neuron type
@ MUST_BE_LARGER
parameter must be larger than
@ CANNOT_BE_CALLED_IN_MODE
function cannot be called in certain mode
@ MUST_BE_OFF
parameter must be off
@ CAN_ONLY_BE_CALLED_IN_MODE
function can only be called in certain mode
@ UNKNOWN
an unknown error
errorType
an enum of all possible error codes
Static Class for handling user errors.
@ CANNOT_BE_UNKNOWN
parameter cannot be of type UNKNOWN
@ FILE_CANNOT_READ
could not read file
@ CANNOT_BE_ZERO
parameter cannot be zero
@ MUST_BE_NEGATIVE
parameter must have negative value
@ MUST_BE_SET_TO
parameter must be set to
@ MUST_HAVE_SAME_SIGN
some parameters must have the same sign
static void assertTrue(bool statement, errorType errorIfAssertionFails, std::string errorFunc, std::string errorMsgPrefix="", std::string errorMsgSuffix="")
simple wrapper for assert statement
@ CANNOT_BE_NEGATIVE
parameter cannot have negative value (opposite to "must be", but includes zero)
@ CANNOT_BE_CONN_SYN_AND_COMP
cannot be both synaptically and compartmentally connected
@ ALL_NOT_ALLOWED
keyword ALL is not allowed for this variable
@ CANNOT_BE_SMALLER
parameter cannot have smaller vaule than some vaule
@ MUST_BE_ZERO
parameter must be 0