Package com.qtsurfer.api.sdk.errors
Class QTSUploadError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.qtsurfer.api.sdk.errors.QTSError
com.qtsurfer.api.sdk.errors.QTSUploadError
- All Implemented Interfaces:
Serializable
Failure while transferring bytes to a presigned dataset upload target.
The exception deliberately does not retain a transport cause because transport exception messages can contain the complete presigned URL. Callers can therefore log this exception without disclosing the upload credentials embedded in that URL.
- Since:
- 0.18.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQTSUploadError(String message) Create a failure without an HTTP response status.QTSUploadError(String message, Integer statusCode) Create a failure with the status returned by the upload target. -
Method Summary
Modifier and TypeMethodDescriptionReturn the status produced by the upload target.Methods inherited from class com.qtsurfer.api.sdk.errors.QTSError
getNext, getReason, getResponseError, getResponseHeaders, getStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QTSUploadError
Create a failure without an HTTP response status.- Parameters:
message- safe error description that does not contain the presigned URL
-
QTSUploadError
Create a failure with the status returned by the upload target.- Parameters:
message- safe error description that does not contain the presigned URLstatusCode- HTTP response status, ornullwhen no response was received
-
-
Method Details
-
statusCode
Return the status produced by the upload target.- Returns:
- HTTP response status, or
nullwhen no response was received
-