oxyplot / oxyplot

A cross-platform plotting library for .NET
https://oxyplot.github.io/
MIT License
3.27k stars 960 forks source link

Create property for re-throwing exceptions in the exporters #470

Open Chrisss50 opened 9 years ago

Chrisss50 commented 9 years ago

"When I am exporting a plotmodel and there are some errors in it (i.e. yaxiskey not found or something like that) OxyPlot does not throw an exception, but rather writes the error message into the output-file. This applies for exporting to Pdf and png (did not test the other exporters). Is there a way to tell the exporter or OxyPlot directly not to write the error-message(s) into the output-file but rather just throw an exception?" -taken from a chat-question

VisualMelon commented 4 years ago

This would be a nice switch to flick when debugging: would this be a welcome addition?

Another option is a custom exception filter (e.g. a delegate) in PlotModel to allow deciding the behaviour on a case-by-case basis (akin to a dispatcher exception handler).