package error
import "github.com/coreos/etcd/error"
Index ¶
Constants ¶
const ( EcodeKeyNotFound = 100 EcodeTestFailed = 101 EcodeNotFile = 102 EcodeNoMorePeer = 103 EcodeNotDir = 104 EcodeNodeExist = 105 EcodeKeyIsPreserved = 106 EcodeRootROnly = 107 EcodeDirNotEmpty = 108 EcodeExistingPeerAddr = 109 EcodeValueRequired = 200 EcodePrevValueRequired = 201 EcodeTTLNaN = 202 EcodeIndexNaN = 203 EcodeValueOrTTLRequired = 204 EcodeTimeoutNaN = 205 EcodeNameRequired = 206 EcodeIndexOrValueRequired = 207 EcodeIndexValueMutex = 208 EcodeInvalidField = 209 EcodeRaftInternal = 300 EcodeLeaderElect = 301 EcodeWatcherCleared = 400 EcodeEventIndexCleared = 401 EcodeStandbyInternal = 402 EcodeInvalidActiveSize = 403 EcodeInvalidRemoveDelay = 404 EcodeClientInternal = 500 )
Functions ¶
func Message ¶
Types ¶
type Error ¶
type Error struct { ErrorCode int `json:"errorCode"` Message string `json:"message"` Cause string `json:"cause,omitempty"` Index uint64 `json:"index"` }
func NewError ¶
func (Error) Error ¶
Only for error interface
func (Error) Write ¶
func (e Error) Write(w http.ResponseWriter)
Source Files ¶
- Version
- v0.4.5
- Published
- Jul 8, 2014
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 3 hours ago –
Tools for package owners.