Class DecodeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.microproxy.contentviews.DecodeException
All Implemented Interfaces:
Serializable

public final class DecodeException extends Exception
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 Details

    • DecodeException

      public DecodeException(String message)
      Creates an exception describing what was wrong with the data.
      Parameters:
      message - what could not be decoded, and why
    • DecodeException

      public DecodeException(String message, Throwable cause)
      Creates an exception describing what was wrong with the data, caused by cause.
      Parameters:
      message - what could not be decoded, and why
      cause - the underlying failure, such as a corrupt compressed stream