Exemple #1
0
void RepNode::throwIfUnExpected(XmlException &xe)
{
	if (xe.getExceptionCode() != XmlException::DATABASE_ERROR ||
	    (xe.getDbErrno() != DB_LOCK_DEADLOCK &&
	     xe.getDbErrno() != DB_REP_HANDLE_DEAD &&
	     xe.getDbErrno() != DB_REP_LOCKOUT)) {

		ostringstream o;
		o << envHome_ << ":" << xe.what() << endl;
		if (xe.getExceptionCode() == XmlException::DATABASE_ERROR)
			o << "DB_ERRNO:" << xe.getDbErrno() << endl;

		printMsg(o);
		throw xe;
	}
}