kubernetes/vendor/go.etcd.io/etcd/server/v3/etcdserver/api/v2error/error.go

var errors

var errorStatus

const EcodeKeyNotFound

const EcodeTestFailed

const EcodeNotFile

const ecodeNoMorePeer

const EcodeNotDir

const EcodeNodeExist

const ecodeKeyIsPreserved

const EcodeRootROnly

const EcodeDirNotEmpty

const ecodeExistingPeerAddr

const EcodeUnauthorized

const ecodeValueRequired

const EcodePrevValueRequired

const EcodeTTLNaN

const EcodeIndexNaN

const ecodeValueOrTTLRequired

const ecodeTimeoutNaN

const ecodeNameRequired

const ecodeIndexOrValueRequired

const ecodeIndexValueMutex

const EcodeInvalidField

const EcodeInvalidForm

const EcodeRefreshValue

const EcodeRefreshTTLRequired

const EcodeRaftInternal

const EcodeLeaderElect

const EcodeWatcherCleared

const EcodeEventIndexCleared

const ecodeStandbyInternal

const ecodeInvalidActiveSize

const ecodeInvalidRemoveDelay

const ecodeClientInternal

type Error

func NewRequestError(errorCode int, cause string) *Error {}

func NewError(errorCode int, cause string, index uint64) *Error {}

// Error is for the error interface
func (e Error) Error() string {}

func (e Error) toJsonString() string {}

func (e Error) StatusCode() int {}

func (e Error) WriteTo(w http.ResponseWriter) error {}