Class MalformedGrpcJsonException

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

public class MalformedGrpcJsonException extends io.micronaut.http.exceptions.HttpStatusException
Exception thrown to indicate that a gRPC JSON payload is malformed or invalid.
This exception extends HttpStatusException and can be used to signal a specific HTTP status and provide additional context about the malformed JSON payload. It is typically associated with HTTP client or server interactions where invalid JSON content related to gRPC transcoding is encountered.
See Also:
  • Constructor Details

    • MalformedGrpcJsonException

      public MalformedGrpcJsonException(io.micronaut.http.HttpStatus status, Object body)
      Parameters:
      status - The HttpStatus
      body - The arbitrary object to return