errors

package
v0.0.0-...-10d5746 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: AGPL-3.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrBadInput

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

when the input is bad (e.g. malformed query, invalid object state)

func NewErrBadInput

func NewErrBadInput(message string) *ErrBadInput

func (*ErrBadInput) Error

func (e *ErrBadInput) Error() string

type ErrForbidden

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

when the user is forbidden (e.g. user can't access a resource)

func NewErrForbidden

func NewErrForbidden(message string) *ErrForbidden

func (*ErrForbidden) Error

func (e *ErrForbidden) Error() string

type ErrUnauthorized

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

when the user is not authorized (e.g. user is not authenticated)

func NewErrUnauthorized

func NewErrUnauthorized(message string) *ErrUnauthorized

func (*ErrUnauthorized) Error

func (e *ErrUnauthorized) Error() string

Jump to

Keyboard shortcuts

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