public class GoogleCloudStorageExceptions extends Object
| Constructor and Description |
|---|
GoogleCloudStorageExceptions() |
| Modifier and Type | Method and Description |
|---|---|
static IOException |
createCompositeException(List<IOException> innerExceptions)
Creates a composite IOException out of multiple IOExceptions.
|
static FileNotFoundException |
getFileNotFoundException(String bucketName,
String objectName)
Creates FileNotFoundException with suitable message for a GCS bucket or object.
|
static IOException |
wrapException(IOException e,
String message,
String bucketName,
String objectName)
Wraps the given IOException into another IOException, adding the given error message and a
reference to the supplied bucket and object.
|
public static FileNotFoundException getFileNotFoundException(String bucketName, String objectName)
public static IOException createCompositeException(List<IOException> innerExceptions)
innerException, it will be returned as-is without wrapping into an outer exception.
it.public static IOException wrapException(IOException e, String message, String bucketName, String objectName)
Copyright © 2015. All rights reserved.