sdkerrors

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 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 BadRequest added in v0.29.0

type BadRequest struct {
	Errors []BadRequestErrors `json:"errors,omitempty"`
}

func (*BadRequest) Error added in v0.29.0

func (e *BadRequest) Error() string

type BadRequestErrors added in v0.29.0

type BadRequestErrors struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Status  *int    `json:"status,omitempty"`
}

func (*BadRequestErrors) GetCode added in v0.29.0

func (b *BadRequestErrors) GetCode() *int

func (*BadRequestErrors) GetMessage added in v0.29.0

func (b *BadRequestErrors) GetMessage() *string

func (*BadRequestErrors) GetStatus added in v0.29.0

func (b *BadRequestErrors) GetStatus() *int

type Error added in v0.29.0

type Error struct {
	Errors []Errors `json:"errors,omitempty"`
}

Error - Unauthorized

func (*Error) Error added in v0.29.0

func (e *Error) Error() string

type Errors

type Errors struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Status  *int    `json:"status,omitempty"`
}

func (*Errors) GetCode

func (e *Errors) GetCode() *int

func (*Errors) GetMessage

func (e *Errors) GetMessage() *string

func (*Errors) GetStatus

func (e *Errors) GetStatus() *int

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

type Unauthorized added in v0.29.0

type Unauthorized struct {
	Errors []UnauthorizedErrors `json:"errors,omitempty"`
}

func (*Unauthorized) Error added in v0.29.0

func (e *Unauthorized) Error() string

type UnauthorizedErrors added in v0.29.0

type UnauthorizedErrors struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Status  *int    `json:"status,omitempty"`
}

func (*UnauthorizedErrors) GetCode added in v0.29.0

func (u *UnauthorizedErrors) GetCode() *int

func (*UnauthorizedErrors) GetMessage added in v0.29.0

func (u *UnauthorizedErrors) GetMessage() *string

func (*UnauthorizedErrors) GetStatus added in v0.29.0

func (u *UnauthorizedErrors) GetStatus() *int

Jump to

Keyboard shortcuts

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