public class AmbiguousConfigurationValuesException extends ConfigurationException
ConfigurationException
indicating that conflicting ConfigurationValue
s were found for a given configuration property
request.ConfigurationValue
,
Serialized FormConstructor and Description |
---|
AmbiguousConfigurationValuesException(String message,
Throwable cause,
Map<? extends String,? extends String> configurationCoordinates,
String name,
Collection<? extends ConfigurationValue> values)
Creates a new
AmbiguousConfigurationValuesException . |
Modifier and Type | Method and Description |
---|---|
Map<? extends String,? extends String> |
getCoordinates()
Returns a
Map representing the configuration coordinates
in effect when this AmbiguousConfigurationValuesException
was created. |
String |
getName()
Returns the name of the configuration property for which a value was requested.
|
Collection<? extends ConfigurationValue> |
getValues()
Returns the
Collection of conflicting values that caused
this AmbiguousConfigurationValuesException to be created. |
String |
toString()
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public AmbiguousConfigurationValuesException(String message, Throwable cause, Map<? extends String,? extends String> configurationCoordinates, String name, Collection<? extends ConfigurationValue> values)
AmbiguousConfigurationValuesException
.message
- the error message; may be null
cause
- the Throwable
that caused this AmbiguousConfigurationValuesException
to be created; may be
null
configurationCoordinates
- the configuration coordinates in
effect at the time conflicting values were found; may be null
name
- the name of the configuration property for which a
value was requested; must not be null
values
- the conflicting values; may be null
NullPointerException
- if name
is null
public final Collection<? extends ConfigurationValue> getValues()
Collection
of conflicting values that caused
this AmbiguousConfigurationValuesException
to be created.
This method will never return null
.
null
Collection
of ConfigurationValue
spublic final Map<? extends String,? extends String> getCoordinates()
Map
representing the configuration coordinates
in effect when this AmbiguousConfigurationValuesException
was created.
This method never returns null
.
null
Map
of configuration
coordinatespublic final String getName()
This method never returns null
.
null
public String toString()
null
String
representation of this
AmbiguousConfigurationValuesException
.
This method never returns null
.
Overrides of this method must not return null
.
toString
in class Throwable
null
String
representation of this
AmbiguousConfigurationValuesException
Copyright © 2017–2018, microBean. All rights reserved.