Package org.microproxy.contentviews
Class DecodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.microproxy.contentviews.DecodeException
- All Implemented Interfaces:
Serializable
Data that a decoder or
ContentView cannot make sense of: malformed protobuf, a
truncated gRPC frame, an unknown compression, invalid msgpack, JSON or multipart data. It is
the only exception decoders throw for bad input; any other exception is a bug.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDecodeException(String message) Creates an exception describing what was wrong with the data.DecodeException(String message, Throwable cause) Creates an exception describing what was wrong with the data, caused bycause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DecodeException
Creates an exception describing what was wrong with the data.- Parameters:
message- what could not be decoded, and why
-
DecodeException
Creates an exception describing what was wrong with the data, caused bycause.- Parameters:
message- what could not be decoded, and whycause- the underlying failure, such as a corrupt compressed stream
-