For example, during encrypt method execution of XPackageEncryption service I get an error. And user should be notified about it. I can throw an css::uno::Exception and then user get errorBox: “Error saving the document ‘***’: Write Error. The file could not be written.” or another predefined error.
But I want user to be provided more verbose error description, where and why it have been occurred, and what user can do next. Is there a mechanism to pass somehow my own description of error up to exception? or may be some workaround?
Actually I can show my own errorBox using XMessageBoxFactory, but then user get 2 error boxes instead of one, while only one box user actually need.