de.frag.umlplugin
Class ErrorHandler

java.lang.Object
  extended by com.intellij.openapi.diagnostic.ErrorReportSubmitter
      extended by de.frag.umlplugin.ErrorHandler
All Implemented Interfaces:
com.intellij.openapi.extensions.PluginAware

public class ErrorHandler
extends com.intellij.openapi.diagnostic.ErrorReportSubmitter

Error report submitter to support bug reports.


Constructor Summary
ErrorHandler()
           
 
Method Summary
 java.lang.String getReportActionText()
           
 com.intellij.openapi.diagnostic.SubmittedReportInfo submit(com.intellij.openapi.diagnostic.IdeaLoggingEvent[] events, java.awt.Component parentComponent)
          This method is called whenever fatal error (aka exception) in plugin code had happened and user decided to report this problem to plugin vendor.
 
Methods inherited from class com.intellij.openapi.diagnostic.ErrorReportSubmitter
getPluginDescriptor, setPluginDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandler

public ErrorHandler()
Method Detail

getReportActionText

public java.lang.String getReportActionText()
Specified by:
getReportActionText in class com.intellij.openapi.diagnostic.ErrorReportSubmitter
Returns:
"Report to vendor" action text to be used in Error Reporter user interface. For example: "Report to JetBrains".

submit

public com.intellij.openapi.diagnostic.SubmittedReportInfo submit(com.intellij.openapi.diagnostic.IdeaLoggingEvent[] events,
                                                                  java.awt.Component parentComponent)
This method is called whenever fatal error (aka exception) in plugin code had happened and user decided to report this problem to plugin vendor.

Specified by:
submit in class com.intellij.openapi.diagnostic.ErrorReportSubmitter
Parameters:
events - sequence of the fatal error descriptors. Fatal errors that happened immediately one after another most probably caused by first one that happened so it's a common practice to submit only first one. Array passed is guaranteed to have at least one element.
parentComponent - one usually wants to show up a dialog asking user for additional details and probably authentication info. parentComponent parameter is passed so dialog that would come up would be properly aligned with its parent dialog (IDE Fatal Errors).
Returns:
submission result status.