customerror

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGrpcError

func FromGrpcError(grpcErr *status.Status) error

func New

func New(err error, errType ErrType) error

func NewErrGetUserIDFailedInAuthRequiredMethod

func NewErrGetUserIDFailedInAuthRequiredMethod() error

func NewErrInvalidArgument

func NewErrInvalidArgument(err error) error

func NewErrNotFound

func NewErrNotFound(err error) error

func NewErrUnauthenticated

func NewErrUnauthenticated() error

Types

type ErrType

type ErrType int
const (
	ErrUnauthenticated ErrType = iota + 1
	ErrNotFound
	ErrAlreadyExist
	ErrInvalidArgument
	ErrExpired
	ErrUnknown
	ErrInternal
	// charge error
	ErrCardDeclined
	ErrBalanceInsufficient
	ErrIncorrectCVC
	ErrExpiredCard
	ErrChargeProcessingError
)

func Type

func Type(err error) ErrType

Jump to

Keyboard shortcuts

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