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
The exception message provides detailed information about the missing method, including its name.
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 Summary
ConstructorsConstructorDescriptionMethodNotFoundException
(String methodName) Constructs a newMethodNotFoundException
with a detailed message indicating the method name that could not be found. -
Method Summary
Methods inherited from class io.micronaut.http.exceptions.HttpStatusException
getBody, getStatus
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MethodNotFoundException
Constructs a newMethodNotFoundException
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 theGrpcServiceRegistry
.- Parameters:
methodName
- The name of the method that could not be found. Must not be null.
-