edu.umd.cs.findbugs.classfile
Class ResourceNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.umd.cs.findbugs.classfile.CheckedAnalysisException
edu.umd.cs.findbugs.classfile.ResourceNotFoundException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MissingClassException
public class ResourceNotFoundException
- extends CheckedAnalysisException
Exception to indicate that a resource was not found.
- Author:
- David Hovemeyer
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getResourceName()
Get the name of the resource that was not found. |
java.lang.ClassNotFoundException |
toClassNotFoundException()
Convert this exception to a ClassNotFoundException. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MESSAGE_PREFIX
public static final java.lang.String MESSAGE_PREFIX
- See Also:
- Constant Field Values
ResourceNotFoundException
public ResourceNotFoundException(java.lang.String resourceName)
- Constructor.
- Parameters:
resourceName
- name of the missing resource
ResourceNotFoundException
public ResourceNotFoundException(java.lang.String resourceName,
java.lang.Throwable cause)
- Constructor.
- Parameters:
resourceName
- name of the missing resourcecause
- underlying cause of the exception
getResourceName
public java.lang.String getResourceName()
- Get the name of the resource that was not found.
- Returns:
- the name of the resource that was not found
toClassNotFoundException
public java.lang.ClassNotFoundException toClassNotFoundException()
- Convert this exception to a ClassNotFoundException.
This method should only be called if the
ResourceNotFoundException occurs while looking for a class.
The message format is parseable by ClassNotFoundExceptionParser.
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.