类 ConfigDataResourceNotFoundException

所有已实现的接口:
Serializable, OriginProvider

public class ConfigDataResourceNotFoundException extends ConfigDataNotFoundException
ConfigDataNotFoundException thrown when a ConfigDataResource cannot be found.
从以下版本开始:
2.4.0
作者:
Phillip Webb
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • getResource

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

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

      public Origin getOrigin()
      从接口复制的说明: OriginProvider
      Return the source origin or null if the origin is not known.
      返回:
      the origin or null
    • getReferenceDescription

      public String getReferenceDescription()
      从类复制的说明: ConfigDataNotFoundException
      Return a description of actual referenced item that could not be found.
      指定者:
      getReferenceDescription 在类中 ConfigDataNotFoundException
      返回:
      a description of the referenced items
    • throwIfDoesNotExist

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

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

      public static void throwIfDoesNotExist(ConfigDataResource resource, Resource resourceToCheck)
      Throw a ConfigDataNotFoundException if the specified Resource does not exist.
      参数:
      resource - the config data resource
      resourceToCheck - the resource to check