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
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 Summary
ConstructorsConstructorDescriptionMalformedGrpcJsonException(io.micronaut.http.HttpStatus status, Object body) -
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
-
MalformedGrpcJsonException
- Parameters:
status- TheHttpStatusbody- The arbitrary object to return
-