- 2.50.0 (latest)
- 2.49.0
- 2.48.2
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.1
- 2.43.2
- 2.42.0
- 2.41.0
- 2.40.1
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.1
- 2.34.0
- 2.33.0
- 2.32.1
- 2.30.1
- 2.29.1
- 2.28.0
- 2.27.1
- 2.24.0
- 2.23.0
- 2.22.6
- 2.21.0
- 2.20.2
- 2.19.0
- 2.18.0
- 2.17.2
- 2.16.0
- 2.15.1
- 2.14.0
- 2.13.1
- 2.12.0
- 2.11.3
- 2.10.0
- 2.9.3
- 2.8.1
- 2.7.1
- 2.6.1
- 2.5.1
- 2.4.5
- 2.3.0
- 2.2.3
- 2.1.10
public final class StorageException extends BaseHttpServiceException
Storage service exception.
Inheritance
java.lang.Object > Throwable > java.lang.Exception > RuntimeException > BaseServiceException > com.google.cloud.http.BaseHttpServiceException > StorageExceptionInherited Members
com.google.cloud.BaseServiceException.equals(java.lang.Object)
com.google.cloud.BaseServiceException.getCode()
com.google.cloud.BaseServiceException.getDebugInfo()
com.google.cloud.BaseServiceException.getLocation()
com.google.cloud.BaseServiceException.getReason()
com.google.cloud.BaseServiceException.hashCode()
com.google.cloud.BaseServiceException.isRetryable()
com.google.cloud.BaseServiceException.isRetryable(boolean,java.io.IOException)
com.google.cloud.BaseServiceException.isRetryable(java.lang.Integer,java.lang.String,boolean,java.util.Set<com.google.cloud.BaseServiceException.Error>)
com.google.cloud.BaseServiceException.translate(com.google.cloud.RetryHelper.RetryHelperException)
com.google.cloud.BaseServiceException.translate(java.util.concurrent.ExecutionException)
Constructors
StorageException(GoogleJsonError error)
public StorageException(GoogleJsonError error)
Name | Description |
error | com.google.api.client.googleapis.json.GoogleJsonError |
StorageException(int code, String message)
public StorageException(int code, String message)
StorageException(int code, String message, String reason, Throwable cause)
public StorageException(int code, String message, String reason, Throwable cause)
StorageException(int code, String message, Throwable cause)
public StorageException(int code, String message, Throwable cause)
StorageException(IOException exception)
public StorageException(IOException exception)
Name | Description |
exception | IOException |
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.
Name | Description |
exception | IOException |
Type | Description |
StorageException |
translateAndThrow(RetryHelper.RetryHelperException ex)
public static StorageException translateAndThrow(RetryHelper.RetryHelperException ex)
Translate RetryHelperException to the StorageException that caused the error. This method will always throw an exception.
Name | Description |
ex | com.google.cloud.RetryHelper.RetryHelperException |
Type | Description |
StorageException |