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 | |
---|---|
Name | Description |
exception | IOException |
Returns | |
---|---|
Type | Description |
StorageException |
|
translateAndThrow(RetryHelper.RetryHelperException ex)
public static StorageException translateAndThrow(RetryHelper.RetryHelperException ex)
Translate