Stuff exception transliterated to the client charset.
| 1431 | |
| 1432 | // Stuff exception transliterated to the client charset. |
| 1433 | static 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. |
no test coverage detected