edu.umd.cs.findbugs.ba.type

Class ThrownException

public class ThrownException extends Object

An exception thrown from an instruction. These can be implicit (i.e., runtime exceptions and errors), or explicit (athrow, or declared exception from called method). This information is used in TypeAnalysis in order to determine:

Author: David Hovemeyer

See Also: ExceptionSet TypeAnalysis

Constructor Summary
ThrownException(ObjectType type, boolean explicit)
Constructor.
Method Summary
ThrownExceptionduplicate()
Return an identical copy of this object.
ObjectTypegetType()
Get the exception type.
booleanisExplicit()
Return whether or not the exception is explicit.
voidsetExplicit(boolean explicit)
Set whether or not the exception is explicit.

Constructor Detail

ThrownException

public ThrownException(ObjectType type, boolean explicit)
Constructor.

Parameters: type type of exception explicit true if explicit, false if implicit

Method Detail

duplicate

public ThrownException duplicate()
Return an identical copy of this object.

getType

public ObjectType getType()
Get the exception type.

isExplicit

public boolean isExplicit()
Return whether or not the exception is explicit.

setExplicit

public void setExplicit(boolean explicit)
Set whether or not the exception is explicit.
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.