apierrors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

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

func NewAPIError

func NewAPIError(message string, statusCode int, body string, httpRes *http.Response) *APIError

func (*APIError) Error

func (e *APIError) Error() string

type BadRequestError

type BadRequestError struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.BadRequestError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata     `json:"-"`
}

func (*BadRequestError) Error

func (e *BadRequestError) Error() string

type ForbiddenError

type ForbiddenError struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.ForbiddenError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata    `json:"-"`
}

func (*ForbiddenError) Error

func (e *ForbiddenError) Error() string

type InvalidPermissionError

type InvalidPermissionError struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.InvalidPermissionError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata            `json:"-"`
}

func (*InvalidPermissionError) Error

func (e *InvalidPermissionError) Error() string

type MediaNotFoundError

type MediaNotFoundError struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.MediaNotFoundError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata        `json:"-"`
}

func (*MediaNotFoundError) Error

func (e *MediaNotFoundError) Error() string

type MediaOrPlaybackNotFoundError

type MediaOrPlaybackNotFoundError struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.MediaOrPlaybackNotFoundError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                  `json:"-"`
}

func (*MediaOrPlaybackNotFoundError) Error

type NotFoundError

type NotFoundError struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.NotFoundErrorError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata        `json:"-"`
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type NotFoundErrorPlaybackID

type NotFoundErrorPlaybackID struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.NotFoundErrorPlaybackIDError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                  `json:"-"`
}

func (*NotFoundErrorPlaybackID) Error

func (e *NotFoundErrorPlaybackID) Error() string

type NotFoundErrorSimulcast

type NotFoundErrorSimulcast struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.NotFoundErrorSimulcastError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                 `json:"-"`
}

func (*NotFoundErrorSimulcast) Error

func (e *NotFoundErrorSimulcast) Error() string

type SimulcastUnavailableError

type SimulcastUnavailableError struct {
	// It demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Returns the problem that has occured.
	//
	Error_   *components.SimulcastUnavailableError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata               `json:"-"`
}

func (*SimulcastUnavailableError) Error

func (e *SimulcastUnavailableError) Error() string

type UnauthorizedError

type UnauthorizedError struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays details about the reasons behind the request's failure.
	Error_   *components.UnauthorizedError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata       `json:"-"`
}

func (*UnauthorizedError) Error

func (e *UnauthorizedError) Error() string

type ValidationErrorResponse

type ValidationErrorResponse struct {
	// It demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Returns the problem that has occured
	Error_   *components.ValidationErrorResponseError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                  `json:"-"`
}

func (*ValidationErrorResponse) Error

func (e *ValidationErrorResponse) Error() string

Jump to

Keyboard shortcuts

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