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 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 Details

    • GrpcInvocationException

      public GrpcInvocationException(String message)
      Constructs a new GrpcInvocationException with 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

      public GrpcInvocationException(String message, Throwable throwable)
      Constructs a new GrpcInvocationException with 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.