예제 #1
0
std::string RemoteDevice::printExceptionMessage(
	CORBA::SystemException& ex, std::string location) const
{
	std::stringstream error;

	string device_name = getDevice().deviceName;

//--------------------------- Remote Device Exception ---------------------------
//>>> Caught CORBA::TRANSIENT when contacting device 'RAM_Controller'.
//>>> Device ID: (RAM_Controller, ep-timing1.stanford.edu, Module 0)
//-------------------------------------------------------------------------------

	error << "--------------------------- Remote Device Exception ---------------------------"
		<< endl
		<< ">>> Caught CORBA::" << ex._name() << " when contacting device '"
		<< device_name << "'." << endl
		<< ">>> Device ID: (" << device_name << ", " << getDevice().address << ", Module " 
		<< getDevice().moduleNum << ")" << endl
		<<   "-------------------------------------------------------------------------------"
		<< endl << endl;
	
	//error << "Caught CORBA::" << ex._name() 
	//	<< " when contacting device '"
	//	<< device_name << "' (" 
	//	<< getDevice().address << ", Module " 
	//	<< getDevice().moduleNum << ")" << endl;
	//error << "    Location: " << location << endl;
	return error.str();
}
예제 #2
0
void NamingContextHelper::putExceptionMessage(CORBA::SystemException& ex)
{
    os() << format("CORBA {0} ({1}), {2}.", ex._name(), ex._rep_id(), ex.NP_minorString()) << endl;
}
예제 #3
0
void NamingContextHelper::putExceptionMessage(CORBA::SystemException& ex)
{
    os() << format("CORBA %1% (%2%), %3%.") %  ex._name() % ex._rep_id() % ex.NP_minorString() << endl;
}