Package edu.umd.cs.findbugs
Class AnalysisError
java.lang.Object
edu.umd.cs.findbugs.AnalysisError
Object recording a recoverable error that occurred during analysis.
- Author:
- David Hovemeyer
-
Constructor Summary
ConstructorsConstructorDescriptionAnalysisError
(String message) Constructor.AnalysisError
(String message, Throwable exception) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get 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.int
hashCode()
void
setExceptionMessage
(String exceptionMessage) Set the exception message.void
setMessage
(String message) Set the message describing the error.void
setStackTrace
(String[] stackTraceList) Set the stack trace elements.
-
Constructor Details
-
AnalysisError
Constructor.- Parameters:
message
- message describing the error
-
AnalysisError
Constructor.- Parameters:
message
- message describing the errorexception
- exception which is the cause of the error
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
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
-