errors

package
v0.0.0-...-0cf49f2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package errors provides facilities with error handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeError

type CompositeError struct {
	Base    error
	Message string
}

func (*CompositeError) Error

func (err *CompositeError) Error() string

type ConflictError

type ConflictError ValidationError

func (*ConflictError) Error

func (err *ConflictError) Error() string

type HTTP

type HTTP struct {
	// Status code.
	Code int

	// Message explaining what went wrong.
	Message string
}

HTTP represents an HTTP error. It implements the error interface.

Each HTTP error has a Code and a message explaining what went wrong.

func (*HTTP) Error

func (e *HTTP) Error() string

type NotAuthorizedError

type NotAuthorizedError ValidationError

func (*NotAuthorizedError) Error

func (err *NotAuthorizedError) Error() string

type ValidationError

type ValidationError struct {
	Message string
}

ValidationError is an error implementation used whenever a validation failure occurs.

func (*ValidationError) Error

func (err *ValidationError) Error() string

Jump to

Keyboard shortcuts

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