java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.discovery.ServiceDiscoveryException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MalformedServiceDescriptorException
,ServiceNotFoundException
Thrown to indicate an error during service discovery process.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a service discovery exception to report a null service ID.ServiceDiscoveryException
(ServiceID serviceId) Creates a service discovery exception with the specified service ID.ServiceDiscoveryException
(ServiceID serviceId, String message) Creates a service discovery exception with the specified service ID and message.ServiceDiscoveryException
(ServiceID serviceId, String message, Throwable cause) Creates a service discovery exception with the specified service ID, message and cause.ServiceDiscoveryException
(ServiceID serviceId, Throwable cause) Creates a service discovery exception with the specified service ID and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceDiscoveryException
public ServiceDiscoveryException()Creates a service discovery exception to report a null service ID.
-
ServiceDiscoveryException
Creates a service discovery exception with the specified service ID.
- Parameters:
serviceId
- The service ID
-
ServiceDiscoveryException
Creates a service discovery exception with the specified service ID and message.
- Parameters:
serviceId
- the service IDmessage
- a message
-
ServiceDiscoveryException
Creates a service discovery exception with the specified service ID and cause.
- Parameters:
serviceId
- the service IDcause
- the cause
-
ServiceDiscoveryException
Creates a service discovery exception with the specified service ID, message and cause.
- Parameters:
serviceId
- the service IDmessage
- a messagecause
- the cause
-
-
Method Details
-
getServiceId
Returns the service ID.
- Returns:
- the service ID or null
-