FindBugs™ 1.3.9

edu.umd.cs.findbugs.classfile
Class ResourceNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.umd.cs.findbugs.classfile.CheckedAnalysisException
              extended by 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
static java.lang.String MESSAGE_PREFIX
           
 
Constructor Summary
ResourceNotFoundException(java.lang.String resourceName)
          Constructor.
ResourceNotFoundException(java.lang.String resourceName, java.lang.Throwable cause)
          Constructor.
 
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
 

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 resource
cause - 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.


FindBugs™ 1.3.9

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