goblerr

package
v0.0.0-...-8e7039a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2017 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// Returns the error Code
	Code string `json:"message,omitempty"`

	// Returns the error message
	Message string `json:"code,omitempty"`

	// Returns the optional error details, nil if not set
	Detail interface{} `json:"detail,omitempty"`
}

Error satisfies the built in error interface in addition to providing additional funcitonality for passing errors around the api

func New

func New(message, code string, detail interface{}) *Error

New returns a new error

func (Error) Error

func (b Error) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL