Class AnalysisError
java.lang.Object
edu.umd.cs.findbugs.AnalysisError
Object recording a recoverable error that occurred during analysis.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisError(String message) Constructor.AnalysisError(String message, Throwable exception) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the exception message.Get the message describing the error.Get the exception message.String[]Get the stack trace elements.String[]Get the stack trace elements.private String[]getStackTraceAsStringArray(Throwable exception) inthashCode()voidsetExceptionMessage(String exceptionMessage) Set the exception message.voidsetMessage(String message) Set the message describing the error.voidsetStackTrace(String[] stackTraceList) Set the stack trace elements.
-
Field Details
-
PRIME
private static final int PRIME- See Also:
-
message
-
exceptionMessage
-
stackTrace
-
nestedExceptionMessage
-
nestedStackTrace
-
exception
-
-
Constructor Details
-
AnalysisError
Constructor.- Parameters:
message- message describing the error
-
AnalysisError
-
-
Method Details
-
hashCode
-
equals
-
getStackTraceAsStringArray
-
setMessage
Set the message describing the error.- Parameters:
message- message describing the error
-
getMessage
Get the message describing the error. -
setExceptionMessage
Set the exception message. This is the value returned by calling toString() on the original exception object.- Parameters:
exceptionMessage- the exception message
-
getExceptionMessage
Get the exception message. This is the value returned by calling toString() on the original exception object. -
getNestedExceptionMessage
Get the exception message. This is the value returned by calling toString() on the original exception object. -
setStackTrace
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
Get the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception. -
getNestedStackTrace
Get the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception. -
getException
- Returns:
- original exception object, or null if no exception was thrown
-