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.2
Published
Oct 10, 2013
Platform
linux/amd64
Imports
2 packages
Last checked
11 seconds ago

Tools for package owners.