package error

import "github.com/coreos/etcd/error"

Index

Functions

func Message

func Message(code int) string

Types

type Error

type Error struct {
	ErrorCode int    `json:"errorCode"`
	Message   string `json:"message"`
	Cause     string `json:"cause,omitempty"`
}

func NewError

func NewError(errorCode int, cause string) Error

func (Error) Error

func (e Error) Error() string

Only for error interface

func (Error) Write

func (e Error) Write(w http.ResponseWriter)

Source Files

error.go

Version
v0.1.1
Published
Aug 19, 2013
Platform
windows/amd64
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.