edu.umd.cs.findbugs.ba
Class DebugRepositoryLookupFailureCallback

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.DebugRepositoryLookupFailureCallback
All Implemented Interfaces:
RepositoryLookupFailureCallback

public class DebugRepositoryLookupFailureCallback
extends java.lang.Object
implements RepositoryLookupFailureCallback

DebugRepositoryLookupFailureCallback implementation for debugging. (Test drivers, etc.) It just prints a message and exits.

Author:
David Hovemeyer

Constructor Summary
DebugRepositoryLookupFailureCallback()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugRepositoryLookupFailureCallback

public DebugRepositoryLookupFailureCallback()
Method Detail

reportMissingClass

public void reportMissingClass(java.lang.ClassNotFoundException ex)
Description copied from interface: RepositoryLookupFailureCallback
Called to report a lookup failure.

Specified by:
reportMissingClass in interface RepositoryLookupFailureCallback
Parameters:
ex - a ClassNotFoundException resulting from the failure

logError

public void logError(java.lang.String message)
Description copied from interface: RepositoryLookupFailureCallback
Log an error that occurs while performing analysis.

Specified by:
logError in interface RepositoryLookupFailureCallback
Parameters:
message - the error message

logError

public void logError(java.lang.String message,
                     java.lang.Throwable e)
Description copied from interface: RepositoryLookupFailureCallback
Log an error that occurs while performing analysis.

Specified by:
logError in interface RepositoryLookupFailureCallback
Parameters:
message - the error message
e - the exception which is the underlying cause of the error

reportSkippedAnalysis

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

Specified by:
reportSkippedAnalysis in interface RepositoryLookupFailureCallback
Parameters:
method -