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:
Serializable
- Direct Known Subclasses:
MissingClassException
Exception to indicate that a resource was not found.
- Author:
- David Hovemeyer
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResourceNotFoundException
(String resourceName) Constructor.ResourceNotFoundException
(String resourceName, Throwable cause) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the resource that was not found.Convert this exception to a ClassNotFoundException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
MESSAGE_PREFIX
- See Also:
-
-
Constructor Details
-
ResourceNotFoundException
Constructor.- Parameters:
resourceName
- name of the missing resource
-
ResourceNotFoundException
Constructor.- Parameters:
resourceName
- name of the missing resourcecause
- underlying cause of the exception
-
-
Method Details
-
getResourceName
Get the name of the resource that was not found.- Returns:
- the name of the resource that was not found
-
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.
-