Package org.apache.beam.sdk.transforms
Class WithFailures.ExceptionElement<T>
- java.lang.Object
-
- org.apache.beam.sdk.transforms.WithFailures.ExceptionElement<T>
-
- Enclosing class:
- WithFailures
public abstract static class WithFailures.ExceptionElement<T> extends java.lang.Object
The value type passed as input to exception handlers. It wraps an exception together with the input element that was being processed at the time the exception was raised.Exception handlers may want to re-raise the exception and catch only specific subclasses in order to limit the scope of handled exceptions or access subclass-specific data.
-
-
Constructor Summary
Constructors Constructor Description ExceptionElement()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
element()
abstract java.lang.Exception
exception()
static <T> WithFailures.ExceptionElement<T>
of(T element, java.lang.Exception exception)
-
-
-
Method Detail
-
element
public abstract T element()
-
exception
public abstract java.lang.Exception exception()
-
of
public static <T> WithFailures.ExceptionElement<T> of(T element, java.lang.Exception exception)
-
-