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.
构造器和说明 |
---|
InconsistentException(Long clientChecksum,
Long serverChecksum,
String requestId) |
限定符和类型 | 方法和说明 |
---|---|
Long |
getClientChecksum() |
String |
getMessage() |
String |
getRequestId() |
Long |
getServerChecksum() |
void |
setClientChecksum(Long clientChecksum) |
void |
setRequestId(String requestId) |
void |
setServerChecksum(Long serverChecksum) |
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
在类中 Throwable
Copyright © 2019. All Rights Reserved.