sdkerrors

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorEntity

type ErrorEntity struct {
	Detail   *string  `json:"detail,omitzero"`
	Messages []string `json:"messages,omitzero"`
	// An object with additional error metadata
	Meta *Meta `json:"meta,omitzero"`
	// A stable code on which to match errors
	Code *string `json:"code,omitzero"`
}

ErrorEntity model

func (*ErrorEntity) Error

func (e *ErrorEntity) Error() string

type Meta

type Meta struct {
}

Meta - An object with additional error metadata

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