Class StoreTimeoutException

All Implemented Interfaces:
Serializable

public class StoreTimeoutException extends CosIdException
A store operation did not complete within StoreConfig.timeout(): the backend's native timeout fired (06-stores.md ยง1). Its outcome is unknown, as with any failed call: a reserve or acquire may have been applied.

Stores throw it, or carry it among the causes of their own exception (one that keeps a status, say); the runtime looks for it through the causes and reports GeneratorListener.onStoreTimeout(java.lang.String, java.lang.String).

See Also:
  • Constructor Details

    • StoreTimeoutException

      public StoreTimeoutException(String message)
    • StoreTimeoutException

      public StoreTimeoutException(String message, Throwable cause)
  • Method Details

    • isTimeout

      public static boolean isTimeout(Throwable error)
      Whether a failure is a store timeout: a StoreTimeoutException itself or among its causes.
      Parameters:
      error - the failure
      Returns:
      whether it timed out