Class ConfigDataLocationNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.context.config.ConfigDataException
org.springframework.boot.context.config.ConfigDataNotFoundException
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
- All Implemented Interfaces:
 Serializable,OriginProvider
ConfigDataNotFoundException thrown when a ConfigDataLocation cannot be
 found.- Since:
 - 2.4.0
 - Author:
 - Phillip Webb
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCreate a newConfigDataLocationNotFoundExceptioninstance.ConfigDataLocationNotFoundException(ConfigDataLocation location, String message, Throwable cause) Create a newConfigDataLocationNotFoundExceptioninstance.ConfigDataLocationNotFoundException(ConfigDataLocation location, Throwable cause) Create a newConfigDataLocationNotFoundExceptioninstance. - 
Method Summary
Modifier and TypeMethodDescriptionReturn the location that could not be found.Return the source origin ornullif the origin is not known.Return a description of actual referenced item that could not be found.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
ConfigDataLocationNotFoundException
Create a newConfigDataLocationNotFoundExceptioninstance.- Parameters:
 location- the location that could not be found
 - 
ConfigDataLocationNotFoundException
Create a newConfigDataLocationNotFoundExceptioninstance.- Parameters:
 location- the location that could not be foundcause- the exception cause
 - 
ConfigDataLocationNotFoundException
public ConfigDataLocationNotFoundException(ConfigDataLocation location, String message, Throwable cause) Create a newConfigDataLocationNotFoundExceptioninstance.- Parameters:
 location- the location that could not be foundmessage- the exception messagecause- the exception cause- Since:
 - 2.4.7
 
 
 - 
 - 
Method Details
- 
getLocation
Return the location that could not be found.- Returns:
 - the location
 
 - 
getOrigin
Description copied from interface:OriginProviderReturn the source origin ornullif the origin is not known.- Returns:
 - the origin or 
null 
 - 
getReferenceDescription
Description copied from class:ConfigDataNotFoundExceptionReturn a description of actual referenced item that could not be found.- Specified by:
 getReferenceDescriptionin classConfigDataNotFoundException- Returns:
 - a description of the referenced items
 
 
 -