[AGENT++] reporting an error from MyLeaf::get_request()

Razvan Cojocaru razvan.cojocaru at kaspersky.ro
Thu Mar 8 15:11:47 CET 2007


Hello.

How do I report an error from a class derived from MibLeaf, in it's
implementation of get_request()?

For example:

void MyLeaf::get_request(Request* req, int ind)
{
	try {
		*(SnmpInt32 *)value = fetch_data_from_network();

	} catch(const NetworkErrorException& nee) {
		// what now?
	}

	// This probably means all went well, but it didn't really.
	MibLeaf::get_request(req, ind);
}

Thanks.


-- 
Razvan Cojocaru
KeyID: 1024D/04CA34DE




More information about the AGENTPP mailing list