Documentation ¶
Overview ¶
Package v2error describes errors in etcd project. When any change happens, https://github.com/etcd-io/website/blob/main/content/docs/v2/errorcode.md needs to be updated correspondingly. To be deprecated in favor of v3 APIs.
Index ¶
Constants ¶
View Source
const ( EcodeKeyNotFound = 100 EcodeTestFailed = 101 EcodeNotFile = 102 EcodeNotDir = 104 EcodeNodeExist = 105 EcodeRootROnly = 107 EcodeDirNotEmpty = 108 EcodePrevValueRequired = 201 EcodeTTLNaN = 202 EcodeIndexNaN = 203 EcodeInvalidField = 209 EcodeInvalidForm = 210 EcodeRefreshValue = 211 EcodeRefreshTTLRequired = 212 EcodeRaftInternal = 300 EcodeLeaderElect = 301 EcodeWatcherCleared = 400 EcodeEventIndexCleared = 401 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { ErrorCode int `json:"errorCode"` Message string `json:"message"` Cause string `json:"cause,omitempty"` Index uint64 `json:"index"` }
func NewRequestError ¶
func (Error) StatusCode ¶
Click to show internal directories.
Click to hide internal directories.