-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove BootstrapException in BootstrapConnector.connect #15
Comments
Hello. Do you mean the following part of code? |
No, more like in pull request #16 that I just added. |
Well, I'm not sure it's a good idea, because |
That'd only be slightly better. Unfortunately that doesn't act like most other Exceptions do when you pass in another Exception as the constructor parameter. That only allows you to get it from getTargetException. It seems like it'd be better to have another exception type rather than using one from the OpenOffice API. |
Hello. We will remove the BootstrapException from BootstrapConnector implementations in future releases. |
Hello. The issue is resolved in master branch. |
Can this be changed to throw the original exception? There are a variety of things that can happen in the original exception that are hidden by wrapping it in a BootstrapException since the original isn't added to the stacktrace, instead it's in a separate getter that you'd have to get by going through the exception stack since it's wrapped again before we get it into an OpenOfficeException. I ask this because it was difficult for me to tell what was going on with a problem I had using yarg in an updated EC2 Beanstalk environment where a permission change in the tomcat home directory prevented it from making a .openoffice directory and it was immediately clear when I did my own version of BootstrapConnector that returned the original error.
The text was updated successfully, but these errors were encountered: