errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 15

Documentation

Index

Constants

View Source
const (
	DatabaseGenericError = iota
	DatabaseItemNotFound
)
View Source
const (
	SharedAccountGenericError = iota
	SharedAccountNoPermission
	SharedAccountBadPermission
	SharedAccountRequestError
)

Variables

This section is empty.

Functions

func GetErrorMessage

func GetErrorMessage(ctx context.Context, err error) error

Types

type DatabaseError

type DatabaseError struct {
	Type    int
	Message string
}

func (*DatabaseError) Error

func (e *DatabaseError) Error() string

type SharedAccountError

type SharedAccountError struct {
	Type    int
	Message string
}

func (*SharedAccountError) Error

func (e *SharedAccountError) Error() string

Jump to

Keyboard shortcuts

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