public class InconsistentException extends RuntimeException
This exception indicates the checksum returned from Server side is not same as the one calculated from client side.
Generally speaking, the caller needs to handle the
InconsistentException
, because it means the data uploaded or
downloaded is not same as its source. Re-upload or re-download is needed to
correct the data.
Operations that could throw this exception include putObject, appendObject, uploadPart, uploadFile, getObject, etc.
Constructor and Description |
---|
InconsistentException(Long clientChecksum,
Long serverChecksum,
String requestId) |
Modifier and Type | Method and Description |
---|---|
Long |
getClientChecksum() |
String |
getMessage() |
String |
getRequestId() |
Long |
getServerChecksum() |
void |
setClientChecksum(Long clientChecksum) |
void |
setRequestId(String requestId) |
void |
setServerChecksum(Long serverChecksum) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Long getClientChecksum()
public void setClientChecksum(Long clientChecksum)
public Long getServerChecksum()
public void setServerChecksum(Long serverChecksum)
public String getRequestId()
public void setRequestId(String requestId)
public String getMessage()
getMessage
in class Throwable
Copyright © 2021. All Rights Reserved.