Class GrpcInvocationException
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.GrpcInvocationException
- All Implemented Interfaces:
 Serializable
public class GrpcInvocationException
extends io.micronaut.http.exceptions.HttpStatusException
Exception indicating a failure during the invocation of a gRPC method.
 
This exception is thrown when an error occurs while processing a gRPC request, typically due to issues such as method invocation failures or unexpected runtime exceptions. It extends
The
This exception is thrown when an error occurs while processing a gRPC request, typically due to issues such as method invocation failures or unexpected runtime exceptions. It extends
HttpStatusException and is associated with the
 HttpStatus.INTERNAL_SERVER_ERROR status.
 The
GrpcInvocationException is marked as @Experimental, indicating
 that its API may change in future releases.- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionGrpcInvocationException(String message) Constructs a newGrpcInvocationExceptionwith the specified detail message and cause.GrpcInvocationException(String message, Throwable throwable) Constructs a newGrpcInvocationExceptionwith the specified detail message and cause. - 
Method Summary
Methods inherited from class io.micronaut.http.exceptions.HttpStatusException
getBody, getStatusMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
GrpcInvocationException
Constructs a newGrpcInvocationExceptionwith the specified detail message and cause. This exception is used to indicate a failure during the invocation of a gRPC method in the server logic.- Parameters:
 message- The detail message explaining the reason for the exception. Must not be null.
 - 
GrpcInvocationException
Constructs a newGrpcInvocationExceptionwith the specified detail message and cause. This exception is used to indicate a failure during the invocation of a gRPC method in the server logic.- Parameters:
 message- The detail message explaining the reason for the exception. Must not be null.throwable- The underlying cause of the exception. Provides additional context about the error encountered during the gRPC invocation process.
 
 -