errors

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalServerError = errors.New("internal server error")

Functions

func IsAccountNotExist

func IsAccountNotExist(err error) bool

func IsAppNotExist

func IsAppNotExist(err error) bool

func IsNodeNotExist

func IsNodeNotExist(err error) bool

func IsNotExist

func IsNotExist(err error) bool

func New

func New(text string) error

New is a wrapper of real errors.New function.

Types

type AccountNotExist

type AccountNotExist struct {
	Id   int64
	Mail string
}

func (AccountNotExist) Error

func (err AccountNotExist) Error() string

type AppNotExist

type AppNotExist struct {
	ID        int64
	SecretKey string
}

func (AppNotExist) Error

func (err AppNotExist) Error() string

type NodeNotExist

type NodeNotExist struct {
	Name string
}

func (NodeNotExist) Error

func (err NodeNotExist) Error() string

type NotExist

type NotExist struct {
	Obj string
}

func (NotExist) Error

func (err NotExist) Error() string

Jump to

Keyboard shortcuts

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