Package org.apache.beam.sdk.coders
Class CannotProvideCoderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.beam.sdk.coders.CannotProvideCoderException
- All Implemented Interfaces:
 Serializable
The exception thrown when a 
CoderRegistry or CoderProvider cannot provide a
 Coder that has been requested.- See Also:
 
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
ConstructorsConstructorDescriptionCannotProvideCoderException(String message) CannotProvideCoderException(String message, Throwable cause) CannotProvideCoderException(String message, Throwable cause, CannotProvideCoderException.ReasonCode reason) CannotProvideCoderException(String message, CannotProvideCoderException.ReasonCode reason)  - 
Method Summary
Modifier and TypeMethodDescriptionReturns the inner-mostCannotProvideCoderExceptionwhen they are deeply nested.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
CannotProvideCoderException
 - 
CannotProvideCoderException
 - 
CannotProvideCoderException
 - 
CannotProvideCoderException
public CannotProvideCoderException(String message, Throwable cause, CannotProvideCoderException.ReasonCode reason)  - 
CannotProvideCoderException
 - 
CannotProvideCoderException
 
 - 
 - 
Method Details
- 
getReason
- Returns:
 - the reason that Coder inference failed.
 
 - 
getRootCause
Returns the inner-mostCannotProvideCoderExceptionwhen they are deeply nested.For example, if a coder for
List<KV<Integer, Whatsit>>cannot be provided because there is no known coder forWhatsit, the root cause of the exception should be a CannotProvideCoderException with details pertinent toWhatsit, suppressing the intermediate layers. 
 -