Package io.joynr.exceptions
Class MultiDomainNoCompatibleProviderFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.joynr.exceptions.JoynrRuntimeException
-
- io.joynr.exceptions.MultiDomainNoCompatibleProviderFoundException
-
- All Implemented Interfaces:
JoynrException,JoynrType,Serializable
public class MultiDomainNoCompatibleProviderFoundException extends JoynrRuntimeException
This exception is thrown when a multi-domain proxy encountersNoCompatibleProviderFoundExceptionfor any of the domains being queried. It contains a map from domain to the specificNoCompatibleProviderFoundExceptioninformation for that domain.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface io.joynr.exceptions.JoynrException
JSON_FIELD_NAME_MESSAGE, JSON_FIELD_NAME_TYPE
-
-
Constructor Summary
Constructors Constructor Description MultiDomainNoCompatibleProviderFoundException(Map<String,NoCompatibleProviderFoundException> exceptionsByDomain)Constructor which takes the map of domains toNoCompatibleProviderFoundException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Set<Version>getDiscoveredVersionsForDomain(String domain)Returns the set of versions which were discovered for a given domain.Set<String>getDomainsWithExceptions()Gets a set of domains for which we haveNoCompatibleProviderFoundExceptioninformation available.NoCompatibleProviderFoundExceptiongetExceptionForDomain(String domain)Returns theNoCompatibleProviderFoundExceptionfor the given domain if one exists.Map<String,NoCompatibleProviderFoundException>getExceptionsByDomain()Gets the map of domains toNoCompatibleProviderFoundException.booleanhasExceptionForDomain(String domain)Checks to see if information is available for a given domain.inthashCode()-
Methods inherited from class io.joynr.exceptions.JoynrRuntimeException
getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MultiDomainNoCompatibleProviderFoundException
public MultiDomainNoCompatibleProviderFoundException(Map<String,NoCompatibleProviderFoundException> exceptionsByDomain)
Constructor which takes the map of domains toNoCompatibleProviderFoundException.- Parameters:
exceptionsByDomain- the exceptions keyed by domain.
-
-
Method Detail
-
getExceptionsByDomain
public Map<String,NoCompatibleProviderFoundException> getExceptionsByDomain()
Gets the map of domains toNoCompatibleProviderFoundException.- Returns:
- see method description.
-
getDomainsWithExceptions
public Set<String> getDomainsWithExceptions()
Gets a set of domains for which we haveNoCompatibleProviderFoundExceptioninformation available.- Returns:
- see method description.
-
hasExceptionForDomain
public boolean hasExceptionForDomain(String domain)
Checks to see if information is available for a given domain.- Parameters:
domain- the domain to check for.- Returns:
trueif there is information available for the domain in the form of ano compatible provider found exceptionorfalseotherwise.
-
getExceptionForDomain
public NoCompatibleProviderFoundException getExceptionForDomain(String domain)
Returns theNoCompatibleProviderFoundExceptionfor the given domain if one exists.- Parameters:
domain- the domain for which to get theNoCompatibleProviderFoundException.- Returns:
- the exception if there is one, or
nullif not.
-
getDiscoveredVersionsForDomain
public Set<Version> getDiscoveredVersionsForDomain(String domain)
Returns the set of versions which were discovered for a given domain.- Parameters:
domain- the domain for which to return the set of versions which were found by that domain.- Returns:
- the set of discovered versions for the given domain, or an empty set if no discovered versions are
available for that domain. Will never be
null.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceJoynrException- Overrides:
hashCodein classJoynrRuntimeException
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceJoynrException- Overrides:
equalsin classJoynrRuntimeException
-
-