Class ResourceNotFoundException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MissingClassException

public class ResourceNotFoundException extends CheckedAnalysisException
Exception to indicate that a resource was not found.
Author:
David Hovemeyer
See Also:
  • Field Details

  • Constructor Details

    • ResourceNotFoundException

      public ResourceNotFoundException(String resourceName)
      Constructor.
      Parameters:
      resourceName - name of the missing resource
    • ResourceNotFoundException

      public ResourceNotFoundException(String resourceName, Throwable cause)
      Constructor.
      Parameters:
      resourceName - name of the missing resource
      cause - underlying cause of the exception
  • Method Details

    • getResourceName

      public String getResourceName()
      Get the name of the resource that was not found.
      Returns:
      the name of the resource that was not found
    • toClassNotFoundException

      public 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.