Exceptions.. cannot catch.

John Ronan j0n@spirit.wit.ie
Sat, 14 Feb 1998 12:38:08 +0000 (GMT)


Howdy, 
I'm having a problem in catching my own exceptions.
my idl is roughly ( I dont' have it here ) 
module CorBot{
	interface Robot{
		exception AtLimit{};
		
		method() 	
			raises(AtLimit);

----------------
	method(){
		AtLimit x;
		throw x;
	}
----------
try{
	method()
}
catch(CorBot::Robot::AtLimit){
	cout << "Finally caught it" << endl;
}
-----------

I can throw any of the system exceptions in my own code and catch them.


Someone please point out where I'm going wrong... More that likely the
problem is my own lack of c++ experience/knowledge.

Cheers
J

--
John Ronan EI7IG: j0n@spirit.wit.ie, jronan@unix1.wit.ie
-------------------------------------------------------------------------------
You can tell you're are getting old when:     
     That sweet young thang you were just gonna hit on calls you sir.
--------- Linux Guru wannabe, part time sysadmin, full time student. ----------