public class ConfigDataLocationNotFoundException extends ConfigDataException
| Constructor and Description |
|---|
ConfigDataLocationNotFoundException(ConfigDataLocation location)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(ConfigDataLocation location,
java.lang.Throwable cause)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(java.lang.String message,
ConfigDataLocation location)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(java.lang.String message,
ConfigDataLocation location,
java.lang.Throwable cause)
Create a new
ConfigDataLocationNotFoundException instance. |
| Modifier and Type | Method and Description |
|---|---|
ConfigDataLocation |
getLocation()
Return the location that could not be found.
|
static void |
throwIfDoesNotExist(ConfigDataLocation location,
java.io.File file)
Throw a
ConfigDataLocationNotFoundException if the specified File
does not exist. |
static void |
throwIfDoesNotExist(ConfigDataLocation location,
java.nio.file.Path path)
Throw a
ConfigDataLocationNotFoundException if the specified Path
does not exist. |
static void |
throwIfDoesNotExist(ConfigDataLocation location,
org.springframework.core.io.Resource resource)
Throw a
ConfigDataLocationNotFoundException if the specified
Resource does not exist. |
public ConfigDataLocationNotFoundException(ConfigDataLocation location)
ConfigDataLocationNotFoundException instance.location - the location that was not foundpublic ConfigDataLocationNotFoundException(ConfigDataLocation location, java.lang.Throwable cause)
ConfigDataLocationNotFoundException instance.location - the location that was not foundcause - the cause of the exceptionpublic ConfigDataLocationNotFoundException(java.lang.String message,
ConfigDataLocation location)
ConfigDataLocationNotFoundException instance.message - the exception messagelocation - the location that was not foundpublic ConfigDataLocationNotFoundException(java.lang.String message,
ConfigDataLocation location,
java.lang.Throwable cause)
ConfigDataLocationNotFoundException instance.message - the exception messagelocation - the location that was not foundcause - the cause of the exceptionpublic ConfigDataLocation getLocation()
public static void throwIfDoesNotExist(ConfigDataLocation location, java.nio.file.Path path)
ConfigDataLocationNotFoundException if the specified Path
does not exist.location - the location being checkedpath - the path to checkpublic static void throwIfDoesNotExist(ConfigDataLocation location, java.io.File file)
ConfigDataLocationNotFoundException if the specified File
does not exist.location - the location being checkedfile - the file to checkpublic static void throwIfDoesNotExist(ConfigDataLocation location, org.springframework.core.io.Resource resource)
ConfigDataLocationNotFoundException if the specified
Resource does not exist.location - the location being checkedresource - the resource to check