apierror

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	ID      string
	Message string
	Status  int
}

func HandleErrors

func HandleErrors(params map[string]string, err error, mod interface{}, apiErr []APIError) APIError

HandleErrors handles api resources add/update/create errors Returns APIError with the ID, message and the http status based on the error

func HandleLogicalCloudErrors

func HandleLogicalCloudErrors(params map[string]string, err error, lcErrors []APIError) APIError

HandleLogicalCloudErrors handles logical cloud errors Returns APIError with the ID, message and the http status based on the error

Jump to

Keyboard shortcuts

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