Package ai.extend.wrapper.errors
Class PollingTimeoutError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ai.extend.wrapper.errors.PollingTimeoutError
-
- All Implemented Interfaces:
java.io.Serializable
public class PollingTimeoutError extends java.lang.RuntimeExceptionException thrown when polling exceeds the maximum wait time.This error is thrown by the polling utilities when a run doesn't reach a terminal state within the configured
maxWaitMsduration.
-
-
Constructor Summary
Constructors Constructor Description PollingTimeoutError(java.lang.String message, int elapsedMs, int maxWaitMs)Creates a new PollingTimeoutError.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetElapsedMs()Returns the actual elapsed time before the timeout occurred.intgetMaxWaitMs()Returns the configured maximum wait time that was exceeded.
-
-
-
Constructor Detail
-
PollingTimeoutError
public PollingTimeoutError(java.lang.String message, int elapsedMs, int maxWaitMs)Creates a new PollingTimeoutError.- Parameters:
message- Descriptive error messageelapsedMs- Actual elapsed time in milliseconds before timeoutmaxWaitMs- Configured maximum wait time in milliseconds
-
-