Package io.joynr.exceptions
Class NoCompatibleProviderFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.joynr.exceptions.JoynrRuntimeException
-
- io.joynr.exceptions.DiscoveryException
-
- io.joynr.exceptions.NoCompatibleProviderFoundException
-
- All Implemented Interfaces:
JoynrException,JoynrType,Serializable
public class NoCompatibleProviderFoundException extends DiscoveryException
Joynr exception to report arbitration failures because of version incompatibility.- 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 NoCompatibleProviderFoundException(String interfaceName, Version interfaceVersion, String domain, Set<Version> discoveredVersions)Constructor for a NoCompatibleProviderFoundException with the name of the interface for which no compatible version was found and a set of versions for which providers were found.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Set<Version>getDiscoveredVersions()StringgetDomain()StringgetInterfaceName()VersiongetInterfaceVersion()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
-
NoCompatibleProviderFoundException
public NoCompatibleProviderFoundException(String interfaceName, Version interfaceVersion, String domain, Set<Version> discoveredVersions)
Constructor for a NoCompatibleProviderFoundException with the name of the interface for which no compatible version was found and a set of versions for which providers were found.- Parameters:
interfaceName- the name of the interface for which no matching provider was found.interfaceVersion- the version of the interface for which a provider was looked for.domain- the domain in which a provider for the interface was looked for.discoveredVersions- the set of versions for which providers were found, but aren't compatible with the version being looked for.
-
-
Method Detail
-
getInterfaceName
public String getInterfaceName()
-
getInterfaceVersion
public Version getInterfaceVersion()
-
getDomain
public String getDomain()
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceJoynrException- Overrides:
hashCodein classJoynrRuntimeException
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceJoynrException- Overrides:
equalsin classJoynrRuntimeException
-
-