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

Function transliterateException

src/jrd/jrd.cpp:1433–1450  ·  view source on GitHub ↗

Stuff exception transliterated to the client charset.

Source from the content-addressed store, hash-verified

1431
1432// Stuff exception transliterated to the client charset.
1433static ISC_STATUS transliterateException(thread_db* tdbb, const Exception& ex, FbStatusVector* vector,
1434 const char* func) throw()
1435{
1436 ex.stuffException(vector);
1437
1438 Jrd::Attachment* attachment = tdbb->getAttachment();
1439 if (func && attachment && attachment->att_trace_manager->needs(ITraceFactory::TRACE_EVENT_ERROR))
1440 {
1441 TraceConnectionImpl conn(attachment);
1442 TraceStatusVectorImpl traceStatus(vector, TraceStatusVectorImpl::TS_ERRORS);
1443
1444 attachment->att_trace_manager->event_error(&conn, &traceStatus, func);
1445 }
1446
1447 JRD_transliterate(tdbb, vector);
1448
1449 return vector->getErrors()[1];
1450}
1451
1452
1453// Transliterate status vector to the client charset.

Callers 15

getInfoMethod · 0.85
freeEngineDataMethod · 0.85
cancelOperationMethod · 0.85
internalCloseMethod · 0.85
internalCommitMethod · 0.85
commitRetainingMethod · 0.85
compileRequestMethod · 0.85
createBlobMethod · 0.85
internalDropDatabaseMethod · 0.85
getSegmentMethod · 0.85
getSliceMethod · 0.85
openBlobMethod · 0.85

Calls 6

JRD_transliterateFunction · 0.85
needsMethod · 0.80
event_errorMethod · 0.80
stuffExceptionMethod · 0.45
getAttachmentMethod · 0.45
getErrorsMethod · 0.45

Tested by

no test coverage detected