- All Implemented Interfaces:
Serializable
Thrown to indicate that no service could be resolved by a DiscoveryService for a specific ServiceID.
Note that, as per documentation, DiscoveryService.resolve(ServiceID, TrafficPolicy) shall return an empty mono when no service could be resolved, this exception must then be thrown
explicitly whenever there's a need to notify this as an error.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a service not found exception to report a null service ID.ServiceNotFoundException(ServiceID serviceId) Creates a service not found exception with the specified service ID.ServiceNotFoundException(ServiceID serviceId, String message) Creates a service not found exception with the specified service ID and message.ServiceNotFoundException(ServiceID serviceId, String message, Throwable cause) Creates a service not found exception with the specified service ID, message and cause.ServiceNotFoundException(ServiceID serviceId, Throwable cause) Creates a service not found exception with the specified service ID and cause. -
Method Summary
Methods inherited from class io.inverno.mod.discovery.ServiceDiscoveryException
getServiceIdMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceNotFoundException
public ServiceNotFoundException()Creates a service not found exception to report a null service ID.
-
ServiceNotFoundException
Creates a service not found exception with the specified service ID.
- Parameters:
serviceId- The service ID
-
ServiceNotFoundException
Creates a service not found exception with the specified service ID and message.
- Parameters:
serviceId- the service IDmessage- a message
-
ServiceNotFoundException
Creates a service not found exception with the specified service ID and cause.
- Parameters:
serviceId- the service IDcause- the cause
-
ServiceNotFoundException
Creates a service not found exception with the specified service ID, message and cause.
- Parameters:
serviceId- the service IDmessage- a messagecause- the cause
-