Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 02/22/2013 07:14 PM, Tom Tromey wrote:
I'm curious what types of exceptions are actually thrown in LibreOffice.
Does it throw -- scalars?  Objects?  Just pointers ("Java style")?

LibreOffice's UNO component system has a large exception hierarchy, which is modeled as a hierarchy of classes in C++. So what is thrown is typically (copies of) stack-allocated class instances, of specific sub-classes of com::sun::star::uno::Exception.

If we had the convenience variable mentioned above, and if LibreOffice
has a relatively simple "exception identity" measure (e.g., if you only
throw pointers, you can just compare them with ==), then it could
perhaps be done by: break at the losing catch, make a conditional "catch
throw", then re-run.

Overall execution in LibreOffice is likely dynamic enough that the relevant exception class instance has different addresses in different runs.

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.