MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / error

Function error

src/yvalve/user_dsql.cpp:1047–1064  ·  view source on GitHub ↗

____________________________________________________________ An error returned has been trapped. If the user specified a status vector, return a status code. Otherwise print the error code(s) and abort.

Source from the content-addressed store, hash-verified

1045// error code(s) and abort.
1046//
1047static ISC_STATUS error(const Firebird::Exception& ex)
1048{
1049 Firebird::StaticStatusVector v;
1050 ex.stuffException(v);
1051 makePermanentVector(v.begin());
1052
1053 if (UDSQL_error->dsql_user_status)
1054 {
1055 fb_utils::copyStatus(UDSQL_error->dsql_user_status, ISC_STATUS_LENGTH, v.begin(), v.getCount());
1056 return UDSQL_error->dsql_user_status[1];
1057 }
1058
1059 fb_utils::copyStatus(UDSQL_error->dsql_status, ISC_STATUS_LENGTH, v.begin(), v.getCount());
1060 gds__print_status(UDSQL_error->dsql_status);
1061 exit(UDSQL_error->dsql_status[1]);
1062
1063 return 0; // suppress compiler warning
1064}
1065
1066
1067static ISC_STATUS error()

Calls 5

makePermanentVectorFunction · 0.85
copyStatusFunction · 0.85
stuffExceptionMethod · 0.45
beginMethod · 0.45
getCountMethod · 0.45

Tested by

no test coverage detected