com.aliyun.oss

## 类 InconsistentException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.aliyun.oss.InconsistentException

- 所有已实现的接口:
    Serializable

      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)`

    - ### 从类继承的方法 java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### InconsistentException

          public InconsistentException(Long clientChecksum,
                               Long serverChecksum,
                               String requestId)

  - ### 方法详细资料

    - #### getClientChecksum

          public Long getClientChecksum()

    - #### setClientChecksum

          public void setClientChecksum(Long clientChecksum)

    - #### getServerChecksum

          public Long getServerChecksum()

    - #### setServerChecksum

          public void setServerChecksum(Long serverChecksum)

    - #### getRequestId

          public String getRequestId()

    - #### setRequestId

          public void setRequestId(String requestId)

    - #### getMessage

          public String getMessage()

      覆盖:
        `getMessage` 在类中 `Throwable`

Copyright © 2020. All Rights Reserved.