Class TimeoutException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.concurrent.TimeoutException

public class TimeoutException extends Exception
Thrown by Future.get(long, TimeUnit) when the work has not finished in time.
  • Constructor Details

    • TimeoutException

      public TimeoutException()
      An exception with no message.
    • TimeoutException

      public TimeoutException(String message)
      An exception with message.
      Parameters:
      message - the detail message