Class ServiceDiscoveryException

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

public class ServiceDiscoveryException extends RuntimeException

Thrown to indicate an error during service discovery process.

Since:
1.12
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • ServiceDiscoveryException

      public ServiceDiscoveryException()

      Creates a service discovery exception to report a null service ID.

    • ServiceDiscoveryException

      public ServiceDiscoveryException(ServiceID serviceId)

      Creates a service discovery exception with the specified service ID.

      Parameters:
      serviceId - The service ID
    • ServiceDiscoveryException

      public ServiceDiscoveryException(ServiceID serviceId, String message)

      Creates a service discovery exception with the specified service ID and message.

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

      public ServiceDiscoveryException(ServiceID serviceId, Throwable cause)

      Creates a service discovery exception with the specified service ID and cause.

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

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

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

      Parameters:
      serviceId - the service ID
      message - a message
      cause - the cause
  • Method Details

    • getServiceId

      public ServiceID getServiceId()

      Returns the service ID.

      Returns:
      the service ID or null