Class MethodNotFoundException

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.MethodNotFoundException
All Implemented Interfaces:
Serializable

public class MethodNotFoundException extends io.micronaut.http.exceptions.HttpStatusException
Exception thrown to indicate that a specified method could not be found within a given context, such as a gRPC service.
This exception extends HttpStatusException and is typically used to signal a HttpStatus.NOT_FOUND (404) response when the desired method is unavailable or does not exist in the provided service or registry.
The exception message provides detailed information about the missing method, including its name.
See Also:
  • Constructor Details

    • MethodNotFoundException

      public MethodNotFoundException(String methodName)
      Constructs a new MethodNotFoundException with a detailed message indicating the method name that could not be found.
      This exception is typically thrown when a requested gRPC method is not registered in the GrpcServiceRegistry.
      Parameters:
      methodName - The name of the method that could not be found. Must not be null.