sdkerrors

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 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 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 GetServerResourcesErrors added in v0.11.1

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

func (*GetServerResourcesErrors) GetCode added in v0.11.1

func (g *GetServerResourcesErrors) GetCode() *int

func (*GetServerResourcesErrors) GetMessage added in v0.11.1

func (g *GetServerResourcesErrors) GetMessage() *string

func (*GetServerResourcesErrors) GetStatus added in v0.11.1

func (g *GetServerResourcesErrors) GetStatus() *int

type GetServerResourcesUnauthorized added in v0.11.2

type GetServerResourcesUnauthorized struct {
	Errors []GetServerResourcesErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

GetServerResourcesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

func (*GetServerResourcesUnauthorized) Error added in v0.11.2

type GetTokenDetailsBadRequest added in v0.11.2

type GetTokenDetailsBadRequest struct {
	Errors []Errors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

GetTokenDetailsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.

func (*GetTokenDetailsBadRequest) Error added in v0.11.2

func (e *GetTokenDetailsBadRequest) Error() string

type GetTokenDetailsErrors added in v0.11.2

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

func (*GetTokenDetailsErrors) GetCode added in v0.11.2

func (g *GetTokenDetailsErrors) GetCode() *int

func (*GetTokenDetailsErrors) GetMessage added in v0.11.2

func (g *GetTokenDetailsErrors) GetMessage() *string

func (*GetTokenDetailsErrors) GetStatus added in v0.11.2

func (g *GetTokenDetailsErrors) GetStatus() *int

type GetTokenDetailsUnauthorized added in v0.11.2

type GetTokenDetailsUnauthorized struct {
	Errors []GetTokenDetailsErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

GetTokenDetailsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

func (*GetTokenDetailsUnauthorized) Error added in v0.11.2

type GetUsersBadRequest added in v0.18.0

type GetUsersBadRequest struct {
	Errors []GetUsersErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

GetUsersBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.

func (*GetUsersBadRequest) Error added in v0.18.0

func (e *GetUsersBadRequest) Error() string

type GetUsersErrors added in v0.18.0

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

func (*GetUsersErrors) GetCode added in v0.18.0

func (g *GetUsersErrors) GetCode() *int

func (*GetUsersErrors) GetMessage added in v0.18.0

func (g *GetUsersErrors) GetMessage() *string

func (*GetUsersErrors) GetStatus added in v0.18.0

func (g *GetUsersErrors) GetStatus() *int

type GetUsersUnauthorized added in v0.18.0

type GetUsersUnauthorized struct {
	Errors []GetUsersUsersErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

GetUsersUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

func (*GetUsersUnauthorized) Error added in v0.18.0

func (e *GetUsersUnauthorized) Error() string

type GetUsersUsersErrors added in v0.18.0

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

func (*GetUsersUsersErrors) GetCode added in v0.18.0

func (g *GetUsersUsersErrors) GetCode() *int

func (*GetUsersUsersErrors) GetMessage added in v0.18.0

func (g *GetUsersUsersErrors) GetMessage() *string

func (*GetUsersUsersErrors) GetStatus added in v0.18.0

func (g *GetUsersUsersErrors) GetStatus() *int

type PostUsersSignInDataAuthenticationErrors added in v0.11.1

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

func (*PostUsersSignInDataAuthenticationErrors) GetCode added in v0.11.1

func (*PostUsersSignInDataAuthenticationErrors) GetMessage added in v0.11.1

func (*PostUsersSignInDataAuthenticationErrors) GetStatus added in v0.11.1

type PostUsersSignInDataBadRequest added in v0.11.2

type PostUsersSignInDataBadRequest struct {
	Errors []PostUsersSignInDataErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

PostUsersSignInDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.

func (*PostUsersSignInDataBadRequest) Error added in v0.11.2

type PostUsersSignInDataErrors added in v0.11.1

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

func (*PostUsersSignInDataErrors) GetCode added in v0.11.1

func (p *PostUsersSignInDataErrors) GetCode() *int

func (*PostUsersSignInDataErrors) GetMessage added in v0.11.1

func (p *PostUsersSignInDataErrors) GetMessage() *string

func (*PostUsersSignInDataErrors) GetStatus added in v0.11.1

func (p *PostUsersSignInDataErrors) GetStatus() *int

type PostUsersSignInDataUnauthorized added in v0.11.2

type PostUsersSignInDataUnauthorized struct {
	Errors []PostUsersSignInDataAuthenticationErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

PostUsersSignInDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

func (*PostUsersSignInDataUnauthorized) Error added in v0.11.2

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