org.springframework.boot.context.config

Class ResourceNotFoundException

  • All Implemented Interfaces:
    Serializable


    public class ResourceNotFoundException
    extends RuntimeException
    Exception thrown when a Resource defined by a property is not found.
    Since:
    1.5.0
    Author:
    Stephane Nicoll
    See Also:
    Serialized Form
    • Constructor Detail

      • ResourceNotFoundException

        public ResourceNotFoundException(String propertyName,
                                         org.springframework.core.io.Resource resource)
    • Method Detail

      • getPropertyName

        public String getPropertyName()
        Return the name of the property that defines the resource.
        Returns:
        the property
      • getResource

        public org.springframework.core.io.Resource getResource()
        Return the Resource.
        Returns:
        the resource

Copyright © 2017 Pivotal Software, Inc.. All rights reserved.