public class CannotProvideCoderException extends Exception
CoderProvider cannot
provide a Coder that has been requested.| Constructor and Description |
|---|
CannotProvideCoderException(String message) |
CannotProvideCoderException(String message,
Throwable cause) |
CannotProvideCoderException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getRootCause()
Returns the inner-most
CannotProvideCoderException when they are deeply nested. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CannotProvideCoderException(String message)
public CannotProvideCoderException(Throwable cause)
public Throwable getRootCause()
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.