edu.umd.cs.findbugs

Class AnalysisError

public class AnalysisError extends Object

Object recording a recoverable error that occurred during analysis.

Author: David Hovemeyer

Constructor Summary
AnalysisError(String message)
Constructor.
AnalysisError(String message, Throwable exception)
Constructor.
Method Summary
StringgetExceptionMessage()
Get the exception message.
StringgetMessage()
Get the message describing the error.
String[]getStackTrace()
Get the stack trace elements.
voidsetExceptionMessage(String exceptionMessage)
Set the exception message.
voidsetMessage(String message)
Set the message describing the error.
voidsetStackTrace(String[] stackTraceList)
Set the stack trace elements.

Constructor Detail

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 Detail

getExceptionMessage

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

getMessage

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

getStackTrace

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

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

setMessage

public void setMessage(String message)
Set the message describing the error.

Parameters: message message describing the error

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

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.