List Info

Thread: C++ and Exeptions: No message-text?!




C++ and Exeptions: No message-text?!
user name
2006-02-21 10:07:15
Hi Daniel, thanks for your reply.

> > Strange, this code throws an exception itself:
> > catch(com::sun::star::uno::Exception &e)
> > {	Any a = cppu::getCaughtException(); // Another
Exception thrown here
> 
> Don't wonder about that, it's an implementation trick
that the exception
> is internally rethrown and caught again by the C++-UNO
bridge.
The problem is that for me it's not caught by the C++-UNO
bridge but by
another catch-block:

try {
...
	try {
	...
	}
	catch(com::sun::star::uno::Exception &e)
	{	Any a = cppu::getCaughtException(); // Another Exception
thrown
	}
...
}
catch(Exception &e)
{ // Here the Exception of cppu::getCaughtException(); is
caught.
}

Bug or feature?

Martin


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )