Class UploadApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.google.api.gax.rpc.ApiException
-
- com.google.photos.library.v1.upload.UploadApiException
-
- All Implemented Interfaces:
java.io.Serializable
public class UploadApiException extends com.google.api.gax.rpc.ApiException
Exception that occurred during byte uploads. Includes a URL to resume this upload.This type of
ApiException
contains an optional resume URL from which an in-progress upload can be resumed.- See Also:
PhotosLibraryUploadCallable
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UploadApiException(java.lang.String message, java.lang.Throwable cause, com.google.api.gax.rpc.StatusCode statusCode, boolean retryable, java.lang.String resumeUrl)
Exception that occurred during an upload that includes a resume URL to resume the upload.UploadApiException(java.lang.Throwable cause, com.google.api.gax.rpc.StatusCode statusCode, boolean retryable, java.lang.String resumeUrl)
Exception that occurred during an upload that includes a URL to resume the upload.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResumeUrl()
The resume URL from which the in-progress upload can be resumed.
-
-
-
Constructor Detail
-
UploadApiException
public UploadApiException(java.lang.Throwable cause, com.google.api.gax.rpc.StatusCode statusCode, boolean retryable, java.lang.String resumeUrl)
Exception that occurred during an upload that includes a URL to resume the upload.- Parameters:
cause
- The cause of this exception.statusCode
- StatusCode that describes the underlying error.retryable
- Whether the request can be retried.resumeUrl
- The URL to use to resume the failed upload.
-
UploadApiException
public UploadApiException(java.lang.String message, java.lang.Throwable cause, com.google.api.gax.rpc.StatusCode statusCode, boolean retryable, java.lang.String resumeUrl)
Exception that occurred during an upload that includes a resume URL to resume the upload.- Parameters:
message
- The detail message that describes this error.cause
- The cause of this exception.statusCode
- StatusCode that describes the underlying error.retryable
- Whether the request can be retried.resumeUrl
- The URL to use to resume the failed upload.
-
-
Method Detail
-
getResumeUrl
public java.lang.String getResumeUrl()
The resume URL from which the in-progress upload can be resumed.This URL can be set for an
UploadMediaItemRequest
inUploadMediaItemRequest.Builder.setUploadUrl(String)
.
-
-