Class ProtobufTranscodingException
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.ProtobufTranscodingException
- All Implemented Interfaces:
Serializable
public class ProtobufTranscodingException
extends io.micronaut.http.exceptions.HttpStatusException
Custom exception for Protobuf transcoding errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProtobufTranscodingException
(String message, Throwable e) Constructs a newProtobufTranscodingException
with a detailed error message and the underlying cause of the exception. -
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
-
ProtobufTranscodingException
Constructs a newProtobufTranscodingException
with a detailed error message and the underlying cause of the exception.
This exception is typically thrown when a failure occurs during Protobuf-to-JSON transcoding, often due to serialization issues or invalid input data.- Parameters:
message
- A detailed message explaining the cause of the exception.e
- The underlying throwable that triggered this exception.
-