public class ConfigDataLocationNotFoundException extends ConfigDataException
| Constructor and Description |
|---|
ConfigDataLocationNotFoundException(ConfigDataLocation location)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(ConfigDataLocation location,
Throwable cause)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(String message,
ConfigDataLocation location)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(String message,
ConfigDataLocation location,
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,
File file)
Throw a
ConfigDataLocationNotFoundException if the specified File
does not exist. |
static void |
throwIfDoesNotExist(ConfigDataLocation location,
Path path)
Throw a
ConfigDataLocationNotFoundException if the specified Path
does not exist. |
static void |
throwIfDoesNotExist(ConfigDataLocation location,
Resource resource)
Throw a
ConfigDataLocationNotFoundException if the specified
Resource does not exist. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ConfigDataLocationNotFoundException(ConfigDataLocation location)
ConfigDataLocationNotFoundException instance.location - the location that was not foundpublic ConfigDataLocationNotFoundException(ConfigDataLocation location, Throwable cause)
ConfigDataLocationNotFoundException instance.location - the location that was not foundcause - the cause of the exceptionpublic ConfigDataLocationNotFoundException(String message, ConfigDataLocation location)
ConfigDataLocationNotFoundException instance.message - the exception messagelocation - the location that was not foundpublic ConfigDataLocationNotFoundException(String message, ConfigDataLocation location, 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, Path path)
ConfigDataLocationNotFoundException if the specified Path
does not exist.location - the location being checkedpath - the path to checkpublic static void throwIfDoesNotExist(ConfigDataLocation location, File file)
ConfigDataLocationNotFoundException if the specified File
does not exist.location - the location being checkedfile - the file to checkpublic static void throwIfDoesNotExist(ConfigDataLocation location, Resource resource)
ConfigDataLocationNotFoundException if the specified
Resource does not exist.location - the location being checkedresource - the resource to check