MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / ErrorCtx_RaiseRuntimeException

Function ErrorCtx_RaiseRuntimeException

src/errors/errors.c:80–96  ·  view source on GitHub ↗

An error was encountered during evaluation, and has already been set in the ErrorCtx. * If an exception handler has been set, exit this routine and return to * the point on the stack where the handler was instantiated. */

Source from the content-addressed store, hash-verified

78 * If an exception handler has been set, exit this routine and return to
79 * the point on the stack where the handler was instantiated. */
80void ErrorCtx_RaiseRuntimeException(const char *err_fmt, ...) {
81 ErrorCtx *ctx = ErrorCtx_Get();
82 ASSERT(ctx != NULL);
83
84 // set error if specified
85 if(err_fmt != NULL) {
86 va_list valist;
87 va_start(valist, err_fmt);
88 _ErrorCtx_SetError(err_fmt, valist);
89 va_end(valist);
90 }
91
92 jmp_buf *env = ctx->breakpoint;
93 // If the exception handler hasn't been set, this function returns to the caller,
94 // which will manage its own freeing and error reporting.
95 if(env != NULL) longjmp(*env, 1);
96}
97
98// Reply to caller with error
99void ErrorCtx_EmitException(void) {

Callers 15

QueryCtx_LockForCommitFunction · 0.85
AR_EXP_EvaluateFunction · 0.85
AR_EXP_AggregateFunction · 0.85
AR_TOPOINTFunction · 0.85
AR_TOMAPFunction · 0.85
AR_RANGEFunction · 0.85
_JsonEncoder_SIValueFunction · 0.85
Record_GetNodeFunction · 0.85
Record_GetEdgeFunction · 0.85
Record_GetGraphEntityFunction · 0.85
_CreateEdgesFunction · 0.85
_CollectDeletedEntitiesFunction · 0.85

Calls 2

ErrorCtx_GetFunction · 0.85
_ErrorCtx_SetErrorFunction · 0.85

Tested by

no test coverage detected