apierrors

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: MIT Imports: 6 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 BadRequest added in v1.0.0

type BadRequest struct {
	TrialPlanRestrictionError *TrialPlanRestrictionError `queryParam:"inline,name=ResponseBody"`
	StreamAlreadyEnabledError *StreamAlreadyEnabledError `queryParam:"inline,name=ResponseBody"`

	Type BadRequestType

	HTTPMeta components.HTTPMetadata `json:"-"`
}

BadRequest - Bad Request – Stream is either already enabled or cannot be enabled on trial plan.

func CreateBadRequestStreamAlreadyEnabledError added in v1.0.0

func CreateBadRequestStreamAlreadyEnabledError(streamAlreadyEnabledError StreamAlreadyEnabledError) BadRequest

func CreateBadRequestTrialPlanRestrictionError added in v1.0.0

func CreateBadRequestTrialPlanRestrictionError(trialPlanRestrictionError TrialPlanRestrictionError) BadRequest

func (BadRequest) Error added in v1.0.0

func (u BadRequest) Error() string

func (BadRequest) MarshalJSON added in v1.0.0

func (u BadRequest) MarshalJSON() ([]byte, error)

func (*BadRequest) UnmarshalJSON added in v1.0.0

func (u *BadRequest) UnmarshalJSON(data []byte) error

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 BadRequestType added in v1.0.0

type BadRequestType string
const (
	BadRequestTypeTrialPlanRestrictionError BadRequestType = "TrialPlanRestrictionError"
	BadRequestTypeStreamAlreadyEnabledError BadRequestType = "StreamAlreadyEnabledError"
)

type DuplicateMp4SupportError added in v1.0.0

type DuplicateMp4SupportError 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.DuplicateMp4SupportError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata              `json:"-"`
}

func (*DuplicateMp4SupportError) Error added in v1.0.0

func (e *DuplicateMp4SupportError) Error() string

type DuplicateReferenceIDErrorResponse added in v1.0.0

type DuplicateReferenceIDErrorResponse 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.DuplicateReferenceIDErrorResponseError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                            `json:"-"`
}

DuplicateReferenceIDErrorResponse - Displays the result of the request.

func (*DuplicateReferenceIDErrorResponse) Error added in v1.0.0

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 ForbiddenResponseError added in v1.0.0

type ForbiddenResponseError struct {
	// It 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.ForbiddenResponseError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata            `json:"-"`
}

func (*ForbiddenResponseError) Error added in v1.0.0

func (e *ForbiddenResponseError) 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 InvalidPlaylistIDResponseError added in v1.0.0

type InvalidPlaylistIDResponseError 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.InvalidPlaylistIDResponseError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                    `json:"-"`
}

func (*InvalidPlaylistIDResponseError) Error added in v1.0.0

type LiveNotFoundError added in v1.0.0

type LiveNotFoundError 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.LiveNotFoundErrorError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata            `json:"-"`
}

func (*LiveNotFoundError) Error added in v1.0.0

func (e *LiveNotFoundError) Error() string

type MediaClipNotFoundError added in v1.0.0

type MediaClipNotFoundError 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.MediaClipNotFoundError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata            `json:"-"`
}

func (*MediaClipNotFoundError) Error added in v1.0.0

func (e *MediaClipNotFoundError) 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 {
	Success  *bool                          `json:"success,omitempty"`
	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 SigningKeyNotFoundError added in v1.0.0

type SigningKeyNotFoundError struct {
	// It 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.SigningKeyNotFoundErrorError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                  `json:"-"`
}

func (*SigningKeyNotFoundError) Error added in v1.0.0

func (e *SigningKeyNotFoundError) 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 StreamAlreadyDisabledError added in v1.0.0

type StreamAlreadyDisabledError struct {
	// Indicates whether the request was successful or not.
	Success *bool `json:"success,omitempty"`
	// Contains details explaining why the request failed.
	Error_   *components.StreamAlreadyDisabledErrorError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                     `json:"-"`
}

func (*StreamAlreadyDisabledError) Error added in v1.0.0

type StreamAlreadyEnabledError added in v1.0.0

type StreamAlreadyEnabledError struct {
	// Indicates whether the request was successful or not.
	Success *bool `json:"success,omitempty"`
	// Contains details explaining why the request failed.
	Error_   *components.StreamAlreadyEnabledErrorError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                    `json:"-"`
}

func (*StreamAlreadyEnabledError) Error added in v1.0.0

func (e *StreamAlreadyEnabledError) Error() string

type TrackDuplicateRequestError added in v1.0.0

type TrackDuplicateRequestError 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.TrackDuplicateRequestError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                `json:"-"`
}

func (*TrackDuplicateRequestError) Error added in v1.0.0

type TrialPlanRestrictionError added in v1.0.0

type TrialPlanRestrictionError struct {
	// Indicates whether the request was successful or not.
	Success *bool `json:"success,omitempty"`
	// Contains details explaining why the request failed.
	Error_   *components.TrialPlanRestrictionErrorError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                    `json:"-"`
}

func (*TrialPlanRestrictionError) Error added in v1.0.0

func (e *TrialPlanRestrictionError) Error() string

type UnAuthorizedResponseError added in v1.0.0

type UnAuthorizedResponseError struct {
	// It 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.UnAuthorizedResponseError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata               `json:"-"`
}

func (*UnAuthorizedResponseError) Error added in v1.0.0

func (e *UnAuthorizedResponseError) 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 {
	// 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.ValidationErrorResponseError `json:"error,omitempty"`
	HTTPMeta components.HTTPMetadata                  `json:"-"`
}

func (*ValidationErrorResponse) Error

func (e *ValidationErrorResponse) Error() string

type ViewNotFoundError added in v1.0.0

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

func (*ViewNotFoundError) Error added in v1.0.0

func (e *ViewNotFoundError) Error() string

Jump to

Keyboard shortcuts

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