Package com.exasol.bucketfs
Class BucketAccessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.exasol.bucketfs.BucketAccessException
-
- All Implemented Interfaces:
Serializable
public class BucketAccessException extends Exception
Exception for problems when accessing buckets or their contents in Exasol's BucketFS.
-
-
Constructor Summary
Constructors Constructor Description BucketAccessException(String message)Create a new instance of aBucketAccessException.BucketAccessException(String message, int statusCode, URI uri)Create a new instance of aBucketAccessException.BucketAccessException(String message, Throwable cause)Create a new instance of aBucketAccessException.BucketAccessException(String message, URI uri, Throwable cause)Create a new instance of aBucketAccessException.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BucketAccessExceptiondownloadInterruptedException(URI uri, BucketOperation operation)static BucketAccessExceptiondownloadIoException(URI uri, BucketOperation operation, IOException exception)intgetStatusCode()URIgetUri()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BucketAccessException
public BucketAccessException(String message, URI uri, Throwable cause)
Create a new instance of aBucketAccessException.- Parameters:
message- error messageuri- URI that was attempted to accesscause- exception that caused this one
-
BucketAccessException
public BucketAccessException(String message, int statusCode, URI uri)
Create a new instance of aBucketAccessException.- Parameters:
message- error messagestatusCode- HTTP response codeuri- URI that was attempted to access
-
BucketAccessException
public BucketAccessException(String message, Throwable cause)
Create a new instance of aBucketAccessException.- Parameters:
message- error messagecause- exception that caused this one
-
BucketAccessException
public BucketAccessException(String message)
Create a new instance of aBucketAccessException.- Parameters:
message- error message
-
-
Method Detail
-
downloadInterruptedException
public static BucketAccessException downloadInterruptedException(URI uri, BucketOperation operation)
- Parameters:
uri- URI of the requestoperation- operation initially requestedBucketOperation- Returns:
- new instance of
BucketAccessExceptionindicating an interruption during download
-
downloadIoException
public static BucketAccessException downloadIoException(URI uri, BucketOperation operation, IOException exception)
- Parameters:
uri- URI of the requestoperation- operation initially requestedBucketOperationexception- cause of the current exception- Returns:
- new instance of
BucketAccessExceptionindicating an IO failure during download
-
getUri
public URI getUri()
- Returns:
- URI that was tried to access
-
getStatusCode
public int getStatusCode()
- Returns:
- HTTP status code
-
-