Package 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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MESSAGE_PREFIX
-
Constructor Summary
Constructors Constructor Description ResourceNotFoundException(java.lang.String resourceName)
Constructor.ResourceNotFoundException(java.lang.String resourceName, java.lang.Throwable cause)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResourceName()
Get the name of the resource that was not found.java.lang.ClassNotFoundException
toClassNotFoundException()
Convert this exception to a ClassNotFoundException.
-
-
-
Field Detail
-
MESSAGE_PREFIX
public static final java.lang.String MESSAGE_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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.
-
-