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?

1
4 comments
Avatar
Permanently deleted user

1) How does IDEA determine what component (IDEA
core/some plugin) is to blame?


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.

2) Is it possible to provide custom reporting
facility for exceptions in my plugin? If yes then how?


You have to register a class extending ErrorReportSubmitter in plugin.xml, something like this:

]]>

0
Avatar
Permanently deleted user

Oh, I've found it.
com.intellij.ExtensionPoints has pretty good documentation on available extension points in IDEA core.

0

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

0
Avatar
Permanently deleted user

Yes, I've seen it, thanks.

0

Please sign in to leave a comment.