errors

package
v0.0.0-...-e22f67b Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2013 License: BSD-3-Clause Imports: 0 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 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 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