apierrors

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProvisionWarehouseTimeout = "ProvisionWarehouseTimeout"

Functions

func IsAuthFailed

func IsAuthFailed(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsProxyErr

func IsProxyErr(err error) bool

func New

func New(hint string, status int, respBuf []byte) error

Types

type APIError

type APIError struct {
	RespBody   APIErrorResponseBody
	RespText   string
	StatusCode int
	Hint       string
}

func (APIError) Error

func (e APIError) Error() string

type APIErrorResponseBody

type APIErrorResponseBody struct {
	Error   string `json:"error"`
	Message string `json:"message"`
}

func RespBody

func RespBody(err error) APIErrorResponseBody

Jump to

Keyboard shortcuts

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