public final class GoogleCloudStorageExceptions extends Object
| Modifier and Type | Method and Description |
|---|---|
static IOException |
createCompositeException(Collection<IOException> innerExceptions)
Creates a composite IOException out of multiple IOExceptions.
|
static FileNotFoundException |
createFileNotFoundException(StorageResourceId resourceId,
IOException cause) |
static FileNotFoundException |
createFileNotFoundException(String bucketName,
String objectName,
IOException cause)
Creates FileNotFoundException with suitable message for a GCS bucket or object.
|
static com.google.api.client.googleapis.json.GoogleJsonResponseException |
createJsonResponseException(com.google.api.client.googleapis.json.GoogleJsonError e,
com.google.api.client.http.HttpHeaders responseHeaders) |
public static FileNotFoundException createFileNotFoundException(String bucketName, String objectName, @Nullable IOException cause)
public static FileNotFoundException createFileNotFoundException(StorageResourceId resourceId, @Nullable IOException cause)
public static IOException createCompositeException(Collection<IOException> innerExceptions)
innerException, it will be returned as-is without wrapping into an outer exception.public static com.google.api.client.googleapis.json.GoogleJsonResponseException createJsonResponseException(com.google.api.client.googleapis.json.GoogleJsonError e,
com.google.api.client.http.HttpHeaders responseHeaders)
Copyright © 2024. All rights reserved.