[SBI] Modified Exception handler on error (#2169)

This commit is contained in:
Sukchan Lee 2023-03-15 20:40:07 +09:00
parent 5f377d0126
commit 6b17bffdfd
646 changed files with 4920 additions and 735 deletions

View file

@ -95,6 +95,10 @@ OpenAPI_failure_event_info_t *OpenAPI_failure_event_info_parseFromJSON(cJSON *fa
goto end;
}
event_local_nonprim = OpenAPI_nwdaf_event_parseFromJSON(event);
if (!event_local_nonprim) {
ogs_error("OpenAPI_nwdaf_event_parseFromJSON failed [event]");
goto end;
}
failure_code = cJSON_GetObjectItemCaseSensitive(failure_event_infoJSON, "failureCode");
if (!failure_code) {
@ -102,6 +106,10 @@ OpenAPI_failure_event_info_t *OpenAPI_failure_event_info_parseFromJSON(cJSON *fa
goto end;
}
failure_code_local_nonprim = OpenAPI_nwdaf_failure_code_parseFromJSON(failure_code);
if (!failure_code_local_nonprim) {
ogs_error("OpenAPI_nwdaf_failure_code_parseFromJSON failed [failure_code]");
goto end;
}
failure_event_info_local_var = OpenAPI_failure_event_info_create (
event_local_nonprim,