@InternalApi public final class StorageException extends BaseHttpServiceException
BaseServiceException.Error, BaseServiceException.ExceptionData
UNKNOWN_CODE
Constructor and Description |
---|
StorageException(com.google.api.client.googleapis.json.GoogleJsonError error) |
StorageException(int code,
String message) |
StorageException(int code,
String message,
Throwable cause) |
StorageException(IOException exception) |
Modifier and Type | Method and Description |
---|---|
static StorageException |
translateAndThrow(RetryHelper.RetryHelperException ex)
Translate RetryHelperException to the StorageException that caused the error.
|
equals, getCode, getDebugInfo, getLocation, getReason, hashCode, isRetryable, isRetryable, isRetryable, translate, translate
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public StorageException(int code, String message)
public StorageException(IOException exception)
public StorageException(com.google.api.client.googleapis.json.GoogleJsonError error)
public static StorageException translateAndThrow(RetryHelper.RetryHelperException ex)
StorageException
- when ex
was caused by a StorageException
Copyright © 2019 Google LLC. All rights reserved.