Exception StorageException (2.22.3)

public final class StorageException extends BaseHttpServiceException

Storage service exception. See Also: Google Cloud Storage error codes

Static Methods

translate(IOException exception)

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.

Parameter
NameDescription
exceptionIOException
Returns
TypeDescription
StorageException

StorageException

translateAndThrow(RetryHelper.RetryHelperException ex)

public static StorageException translateAndThrow(RetryHelper.RetryHelperException ex)

Translate