Class UserCodeRemoteSystemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.beam.io.requestresponse.UserCodeExecutionException
org.apache.beam.io.requestresponse.UserCodeRemoteSystemException
- All Implemented Interfaces:
Serializable
A
UserCodeExecutionException
that signals an error with a remote system. Examples of such
errors include an HTTP 5XX error or gRPC INTERNAL (13) error.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserCodeRemoteSystemException
(String message) UserCodeRemoteSystemException
(String message, Throwable cause) UserCodeRemoteSystemException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Reports that remote system errors should be repeated.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UserCodeRemoteSystemException
-
UserCodeRemoteSystemException
-
UserCodeRemoteSystemException
-
UserCodeRemoteSystemException
-
-
Method Details
-
shouldRepeat
public boolean shouldRepeat()Reports that remote system errors should be repeated. These may be transient errors of a remote API service that resolve in time. Thus requests should be repeated..- Overrides:
shouldRepeat
in classUserCodeExecutionException
-