Custom exception reporting
When IDEA encounters an exception it shows it in status bar and suggests sending report to tracker.
1) How does IDEA determine what component (IDEA core/some plugin) is to blame?
2) Is it possible to provide custom reporting facility for exceptions in my plugin? If yes then how?
Please sign in to leave a comment.
Each plugin has its own class loader, so for each class the 'owning plugin' can be determined. Most probably the exception handler is traveling up the stacktrace looking for a class owned by a plugin. If no plugin is found then it has to be IDEA core.
You have to register a class extending ErrorReportSubmitter in plugin.xml, something like this:
]]>
Oh, I've found it.
com.intellij.ExtensionPoints has pretty good documentation on available extension points in IDEA core.
Hi Marat
You could also apply the following implementation to save you some work:
http://www.intellij.net/forums/thread.jspa?threadID=263093&tstart=30
I hope this is helpful...
etienne
Yes, I've seen it, thanks.