Allow some exceptions from extensions to pass through to the gui
Exceptions that are thrown from extensions are normally only logged and then discarded. There is almost no way for the user to get informed about an error. Ticket #1545 would need such a feature for the "save" extension point. Eg. by throwing a certain error a "save" extension should be able to abort the save and have an error message displayed for the user.
Change History
(7)
Owner: |
changed from everyone to Nicklas Nordborg
|
Status: |
new → assigned
|
Summary: |
Allow some exceptions from extensions to pass thorugh to the gui → Allow some exceptions from extensions to pass through to the gui
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
(In [5486]) References #1549: Allow some exceptions from extensions to pass thorugh to the gui
This is now implemented in the core extension system. An extension point may specify what
ErrorHandlerFactory
to use. We provide two implementations. One that only write to the log file (LoggingErrorHandlerFactory
) and one that also re-throw the error so that it can bubble up to the gui (RethrowErrorHandlerFactory
).For extension points defined in XML files the error handler factory can be specified using the <error-handler-factory> tag. It uses the same sub-structure as other <*-factory> tags and has the same support for initialization.