Class ResourceNotFoundException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MESSAGE_PREFIX  
    • 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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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.