edu.umd.cs.findbugs.classfile

Class ResourceNotFoundException

    • Constructor Detail

      • 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 Detail

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

Copyright © 2003–2015. All rights reserved.