org.springframework.boot.context.config

Class ConfigDataResourceNotFoundException

    • Method Detail

      • getResource

        public ConfigDataResource getResource()
        Return the resource that could not be found.
        Returns:
        the resource
      • getLocation

        public ConfigDataLocation getLocation()
        Return the original location that was resolved to determine the resource.
        Returns:
        the location or null if no location is available
      • getOrigin

        public Origin getOrigin()
        Description copied from interface: OriginProvider
        Return the source origin or null if the origin is not known.
        Returns:
        the origin or null
      • throwIfDoesNotExist

        public static void throwIfDoesNotExist(ConfigDataResource resource,
                                               java.nio.file.Path pathToCheck)
        Throw a ConfigDataNotFoundException if the specified Path does not exist.
        Parameters:
        resource - the config data resource
        pathToCheck - the path to check
      • throwIfDoesNotExist

        public static void throwIfDoesNotExist(ConfigDataResource resource,
                                               java.io.File fileToCheck)
        Throw a ConfigDataNotFoundException if the specified File does not exist.
        Parameters:
        resource - the config data resource
        fileToCheck - the file to check
      • throwIfDoesNotExist

        public static void throwIfDoesNotExist(ConfigDataResource resource,
                                               org.springframework.core.io.Resource resourceToCheck)
        Throw a ConfigDataNotFoundException if the specified Resource does not exist.
        Parameters:
        resource - the config data resource
        resourceToCheck - the resource to check