sdkerrors

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIErrorResult

type APIErrorResult struct {
	// Error code
	Code string `json:"code"`
	Data *Data  `json:"data,omitempty"`
	// Error description
	Message string `json:"message"`
	// Status code
	Status float32 `json:"status"`
}

APIErrorResult - API Error response model

func (*APIErrorResult) Error

func (e *APIErrorResult) Error() string

type Data

type Data struct {
}

type SDKError

type SDKError struct {
	Message     string
	StatusCode  int
	Body        string
	RawResponse *http.Response
}

func NewSDKError

func NewSDKError(message string, statusCode int, body string, httpRes *http.Response) *SDKError

func (*SDKError) Error

func (e *SDKError) Error() string

Jump to

Keyboard shortcuts

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