Class ServiceNotFoundException

All Implemented Interfaces:
Serializable

public class ServiceNotFoundException extends ServiceDiscoveryException

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 Details

    • ServiceNotFoundException

      public ServiceNotFoundException()

      Creates a service not found exception to report a null service ID.

    • ServiceNotFoundException

      public ServiceNotFoundException(ServiceID serviceId)

      Creates a service not found exception with the specified service ID.

      Parameters:
      serviceId - The service ID
    • ServiceNotFoundException

      public ServiceNotFoundException(ServiceID serviceId, String message)

      Creates a service not found exception with the specified service ID and message.

      Parameters:
      serviceId - the service ID
      message - a message
    • ServiceNotFoundException

      public ServiceNotFoundException(ServiceID serviceId, Throwable cause)

      Creates a service not found exception with the specified service ID and cause.

      Parameters:
      serviceId - the service ID
      cause - the cause
    • ServiceNotFoundException

      public ServiceNotFoundException(ServiceID serviceId, String message, Throwable cause)

      Creates a service not found exception with the specified service ID, message and cause.

      Parameters:
      serviceId - the service ID
      message - a message
      cause - the cause