Class ServiceNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.http.exceptions.HttpException
io.micronaut.http.exceptions.HttpStatusException
io.micronaut.protobuf.json.exception.ServiceNotFoundException
All Implemented Interfaces:
Serializable

public class ServiceNotFoundException extends io.micronaut.http.exceptions.HttpStatusException
Exception thrown when a requested service cannot be found.

This exception extends HttpStatusException and is specifically used to signal a NOT_FOUND HTTP status when a gRPC service is not available in the registry.

The exception message includes the name of the service that was not found.

See Also:
  • Constructor Details

    • ServiceNotFoundException

      public ServiceNotFoundException(String serviceName)
      Constructs a new ServiceNotFoundException with a detailed error message indicating the service that could not be found.
      Parameters:
      serviceName - The name of the service that was not found. This value will be included in the exception message to provide context about the missing service.