helpers

package
v0.0.0-...-213c2e4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingHandler

func LoggingHandler(handler http.Handler) http.Handler

LoggingHandler wraps the handler with logger

func NewRecoverableError

func NewRecoverableError(message string) error

NewRecoverableError returns new recoverable error

func NewUnRecoverableError

func NewUnRecoverableError(message string) error

NewUnRecoverableError returns new unrecoverable error

Types

type RecoverableError

type RecoverableError struct {
	// contains filtered or unexported fields
}

RecoverableError is an error for recoverable state

func (*RecoverableError) Error

func (err *RecoverableError) Error() string

Error returns error message

type UnRecoverableError

type UnRecoverableError struct {
	// contains filtered or unexported fields
}

UnRecoverableError is an error for unrecoverable state

func (*UnRecoverableError) Error

func (err *UnRecoverableError) Error() string

Error returns error message

Jump to

Keyboard shortcuts

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