Serializablepublic class KvStoreException extends RuntimeException
KvStoreException constructors
and the method for obtaining kvStoreErrorCode.SystemCapability.Data#DATA_DISTRIBUTEDDATAMGR| 构造器 | 说明 |
|---|---|
KvStoreException(KvStoreErrorCode kvStoreErrorCode) |
A constructor used to create a
KvStoreException instance. |
public KvStoreException(KvStoreErrorCode kvStoreErrorCode)
KvStoreException instance.
An exception containing the error code is thrown if the constructor of KvStore fails to be called.
kvStoreErrorCode - Indicates the kvStoreErrorCode of the KvStore exception.public KvStoreErrorCode getKvStoreErrorCode()
kvStoreErrorCode of a KvStore exception.