Class AnalysisError

java.lang.Object
edu.umd.cs.findbugs.AnalysisError

public class AnalysisError extends Object
Object recording a recoverable error that occurred during analysis.
Author:
David Hovemeyer
  • Constructor Details

    • AnalysisError

      public AnalysisError(String message)
      Constructor.
      Parameters:
      message - message describing the error
    • AnalysisError

      public AnalysisError(String message, Throwable exception)
      Constructor.
      Parameters:
      message - message describing the error
      exception - exception which is the cause of the error
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • setMessage

      public void setMessage(String message)
      Set the message describing the error.
      Parameters:
      message - message describing the error
    • getMessage

      public String getMessage()
      Get the message describing the error.
    • setExceptionMessage

      public void setExceptionMessage(String exceptionMessage)
      Set the exception message. This is the value returned by calling toString() on the original exception object.
      Parameters:
      exceptionMessage - the exception message
    • getExceptionMessage

      public String getExceptionMessage()
      Get the exception message. This is the value returned by calling toString() on the original exception object.
    • getNestedExceptionMessage

      public String getNestedExceptionMessage()
      Get the exception message. This is the value returned by calling toString() on the original exception object.
    • setStackTrace

      public void setStackTrace(String[] stackTraceList)
      Set the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception.
      Parameters:
      stackTraceList - the stack trace elements
    • getStackTrace

      public String[] getStackTrace()
      Get the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception.
    • getNestedStackTrace

      public String[] getNestedStackTrace()
      Get the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception.
    • getException

      public Throwable getException()
      Returns:
      original exception object, or null if no exception was thrown