Beispiel #1
0
void Applier::postError(FbStatusVector* status, const Exception& ex)
{
	FbLocalStatus temp_status;
	ex.stuffException(&temp_status);

	string message;

	char temp[BUFFER_LARGE];
	const ISC_STATUS* temp_status_ptr = temp_status->getErrors();
	while (fb_interpret(temp, sizeof(temp), &temp_status_ptr))
	{
		if (!message.isEmpty())
			message += "\n\t";

		message += temp;
	}

	logMessage(message, ERROR_MSG);

	Arg::StatusVector org_error(&temp_status);
	Arg::StatusVector new_error;
	new_error << Arg::Gds(isc_random) << Arg::Str("Replication error");
	new_error.append(org_error);
	new_error.copyTo(status);
}
Beispiel #2
0
void StatusVector::ImplStatusVector::assign(const Exception& ex) throw()
{
    clear();
    ex.stuffException(m_status_vector);
}