Versions in this module Expand all Collapse all v0 v0.7.1 Jul 22, 2022 v0.7.0 Aug 24, 2020 Changes in this version + const EcodeDirNotEmpty + const EcodeEventIndexCleared + const EcodeIndexNaN + const EcodeInvalidField + const EcodeInvalidForm + const EcodeKeyNotFound + const EcodeLeaderElect + const EcodeNodeExist + const EcodeNotDir + const EcodeNotFile + const EcodePrevValueRequired + const EcodeRaftInternal + const EcodeRefreshTTLRequired + const EcodeRefreshValue + const EcodeRootROnly + const EcodeTTLNaN + const EcodeTestFailed + const EcodeUnauthorized + const EcodeWatcherCleared + type Error struct + Cause string + ErrorCode int + Index uint64 + Message string + func NewError(errorCode int, cause string, index uint64) *Error + func NewRequestError(errorCode int, cause string) *Error + func (e Error) Error() string + func (e Error) StatusCode() int + func (e Error) WriteTo(w http.ResponseWriter) error