Class CannotProvideCoderException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CannotProvideCoderException
    extends java.lang.Exception
    The exception thrown when a CoderRegistry or CoderProvider cannot provide a Coder that has been requested.
    See Also:
    Serialized Form
    • Constructor Detail

      • CannotProvideCoderException

        public CannotProvideCoderException​(java.lang.String message)
      • CannotProvideCoderException

        public CannotProvideCoderException​(java.lang.String message,
                                           java.lang.Throwable cause)
      • CannotProvideCoderException

        public CannotProvideCoderException​(java.lang.Throwable cause)
    • Method Detail

      • getRootCause

        public java.lang.Throwable getRootCause()
        Returns the inner-most CannotProvideCoderException when they are deeply nested.

        For example, if a coder for List<KV<Integer, Whatsit>> cannot be provided because there is no known coder for Whatsit, the root cause of the exception should be a CannotProvideCoderException with details pertinent to Whatsit, suppressing the intermediate layers.