edu.umd.cs.findbugs.ba
Interface RepositoryLookupFailureCallback

All Known Subinterfaces:
BugReporter
All Known Implementing Classes:
AbstractBugReporter, BugCollectionBugReporter, DebugRepositoryLookupFailureCallback, DelegatingBugReporter, EmacsBugReporter, FilterBugReporter, HTMLBugReporter, PrintingBugReporter, SortingBugReporter, SwingGUIBugReporter, TextUIBugReporter, XDocsBugReporter, XMLBugReporter

public interface RepositoryLookupFailureCallback

An interface which Repository class lookup failures are reported to. Some of the analysis classes make use of class hierarchy information. In collecting this information, errors can result because some classes in the hierarchy can't be found; e.g., when the runtime classpath is incomplete. When possible, the analysis classes will be conservative in the event of a lookup failure. However, it is important to report such lookup failures to the user. So, classes that use the Repository should have a callback object to report lookup failures to.

Author:
David Hovemeyer

Method Summary
 void logError(java.lang.String message)
          Log an error that occurs while performing analysis.
 void logError(java.lang.String message, java.lang.Throwable e)
          Log an error that occurs while performing analysis.
 void reportMissingClass(java.lang.ClassNotFoundException ex)
          Called to report a lookup failure.
 void reportSkippedAnalysis(JavaClassAndMethod method)
          Report that we skipped some analysis of a method
 

Method Detail

reportMissingClass

void reportMissingClass(java.lang.ClassNotFoundException ex)
Called to report a lookup failure.

Parameters:
ex - a ClassNotFoundException resulting from the failure

reportSkippedAnalysis

void reportSkippedAnalysis(JavaClassAndMethod method)
Report that we skipped some analysis of a method

Parameters:
method -

logError

void logError(java.lang.String message)
Log an error that occurs while performing analysis.

Parameters:
message - the error message

logError

void logError(java.lang.String message,
              java.lang.Throwable e)
Log an error that occurs while performing analysis.

Parameters:
message - the error message
e - the exception which is the underlying cause of the error