errors

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetError

func GetError(err error) error

Retrieves a custom error struct based on the original error APIStatus struct Returns the original error struct in case it can't identify the kind of APIStatus error

Types

type KNError

type KNError struct {
	Status api_errors.APIStatus
	// contains filtered or unexported fields
}

func NewKNError

func NewKNError(msg string) *KNError

func (*KNError) Error

func (kne *KNError) Error() string

Jump to

Keyboard shortcuts

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