Package edu.umd.cs.findbugs
Class AnalysisError
- java.lang.Object
-
- edu.umd.cs.findbugs.AnalysisError
-
public class AnalysisError extends java.lang.ObjectObject recording a recoverable error that occurred during analysis.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Constructor Description AnalysisError(java.lang.String message)Constructor.AnalysisError(java.lang.String message, java.lang.Throwable exception)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.ThrowablegetException()java.lang.StringgetExceptionMessage()Get the exception message.java.lang.StringgetMessage()Get the message describing the error.java.lang.StringgetNestedExceptionMessage()Get the exception message.java.lang.String[]getNestedStackTrace()Get the stack trace elements.java.lang.String[]getStackTrace()Get the stack trace elements.inthashCode()voidsetExceptionMessage(java.lang.String exceptionMessage)Set the exception message.voidsetMessage(java.lang.String message)Set the message describing the error.voidsetStackTrace(java.lang.String[] stackTraceList)Set the stack trace elements.
-
-
-
Constructor Detail
-
AnalysisError
public AnalysisError(java.lang.String message)
Constructor.- Parameters:
message- message describing the error
-
AnalysisError
public AnalysisError(java.lang.String message, java.lang.Throwable exception)Constructor.- Parameters:
message- message describing the errorexception- exception which is the cause of the error
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
setMessage
public void setMessage(java.lang.String message)
Set the message describing the error.- Parameters:
message- message describing the error
-
getMessage
public java.lang.String getMessage()
Get the message describing the error.
-
setExceptionMessage
public void setExceptionMessage(java.lang.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 java.lang.String getExceptionMessage()
Get the exception message. This is the value returned by calling toString() on the original exception object.
-
getNestedExceptionMessage
public java.lang.String getNestedExceptionMessage()
Get the exception message. This is the value returned by calling toString() on the original exception object.
-
setStackTrace
public void setStackTrace(java.lang.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 java.lang.String[] getStackTrace()
Get the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception.
-
getNestedStackTrace
public java.lang.String[] getNestedStackTrace()
Get the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception.
-
getException
public java.lang.Throwable getException()
- Returns:
- original exception object, or null if no exception was thrown
-
-