public class CannotProvideCoderException extends Exception
CoderProvider cannot
provide a Coder that has been requested.| Modifier and Type | Class and Description |
|---|---|
static class |
CannotProvideCoderException.ReasonCode
Indicates the reason that
Coder inference failed. |
| Constructor and Description |
|---|
CannotProvideCoderException(String message) |
CannotProvideCoderException(String message,
CannotProvideCoderException.ReasonCode reason) |
CannotProvideCoderException(String message,
Throwable cause) |
CannotProvideCoderException(String message,
Throwable cause,
CannotProvideCoderException.ReasonCode reason) |
CannotProvideCoderException(Throwable cause) |
CannotProvideCoderException(Throwable cause,
CannotProvideCoderException.ReasonCode reason) |
| Modifier and Type | Method and Description |
|---|---|
CannotProvideCoderException.ReasonCode |
getReason() |
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(String message, CannotProvideCoderException.ReasonCode reason)
public CannotProvideCoderException(String message, Throwable cause, CannotProvideCoderException.ReasonCode reason)
public CannotProvideCoderException(Throwable cause)
public CannotProvideCoderException(Throwable cause, CannotProvideCoderException.ReasonCode reason)
public CannotProvideCoderException.ReasonCode getReason()
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.