예제 #1
0
파일: RepNode.cpp 프로젝트: kanbang/Colt
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;
	}
}