Class StorageException

All Implemented Interfaces:
Serializable

@InternalApi public final class StorageException extends com.google.cloud.http.BaseHttpServiceException
Storage service exception.
See Also:
  • Constructor Details

  • Method Details

    • translateAndThrow

      Translate RetryHelperException to the StorageException that caused the error. This method will always throw an exception.
      Throws:
      StorageException - when ex was caused by a StorageException
    • translate

      public static StorageException translate(IOException exception)
      Translate IOException to a StorageException representing the cause of the error. This method defaults to idempotent always being true. Additionally, this method translates transient issues Connection Closed Prematurely as a retryable error.
      Returns:
      StorageException