errs

package
v0.0.0-...-3d0596a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZapStack

func ZapStack(err error) zapcore.Field

ZapStack try get stacktrace from error and convert it in zapcore.Field

Types

type ConstantError

type ConstantError string

ConstantError is a constant error on string

const (
	// InternalServerError is a message for 500 status
	InternalServerError = "something went wrong"

	// ModelNotFound in store
	ModelNotFound ConstantError = "model not found"
)

func (ConstantError) Error

func (c ConstantError) Error() string

Jump to

Keyboard shortcuts

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