errors

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoConfig        = psrpc.NewErrorf(psrpc.Internal, "missing config")
	ErrGhostPadFailed  = psrpc.NewErrorf(psrpc.Internal, "failed to add ghost pad to bin")
	ErrBinAlreadyAdded = psrpc.NewErrorf(psrpc.Internal, "bin already added to pipeline")
	ErrWrongHierarchy  = psrpc.NewErrorf(psrpc.Internal, "pipeline can contain bins or elements, not both")
	ErrPipelineFrozen  = psrpc.NewErrorf(psrpc.Internal, "pipeline frozen")
	ErrSinkNotFound    = psrpc.NewErrorf(psrpc.Internal, "sink not found")
)
View Source
var (
	ErrNonStreamingPipeline       = psrpc.NewErrorf(psrpc.InvalidArgument, "UpdateStream called on non-streaming egress")
	ErrNoCompatibleCodec          = psrpc.NewErrorf(psrpc.InvalidArgument, "no supported codec is compatible with all outputs")
	ErrNoCompatibleFileOutputType = psrpc.NewErrorf(psrpc.InvalidArgument, "no supported file output type is compatible with the selected codecs")
	ErrEgressNotFound             = psrpc.NewErrorf(psrpc.NotFound, "egress not found")
	ErrEgressAlreadyExists        = psrpc.NewErrorf(psrpc.AlreadyExists, "egress already exists")
	ErrSubscriptionFailed         = psrpc.NewErrorf(psrpc.Unavailable, "failed to subscribe to track")
	ErrNotEnoughCPU               = psrpc.NewErrorf(psrpc.Unavailable, "not enough CPU")
	ErrShuttingDown               = psrpc.NewErrorf(psrpc.Unavailable, "server is shutting down")
)

Functions

func As added in v1.5.5

func As(err error, target any) bool

func ErrCPUExhausted added in v1.8.1

func ErrCPUExhausted(usage float64) error

func ErrChromeFailedToStart added in v1.8.6

func ErrChromeFailedToStart(err error) error

func ErrCouldNotParseConfig

func ErrCouldNotParseConfig(err error) error

func ErrGstPipelineError added in v1.5.5

func ErrGstPipelineError(err error) error

func ErrIncompatible

func ErrIncompatible(format, codec interface{}) error

func ErrInvalidInput

func ErrInvalidInput(field string) error

func ErrInvalidUrl

func ErrInvalidUrl(url string, reason string) error

func ErrNotSupported

func ErrNotSupported(feature string) error

func ErrPadLinkFailed

func ErrPadLinkFailed(src, sink, status string) error

func ErrPageLoadFailed added in v1.8.4

func ErrPageLoadFailed(err string) error

func ErrParticipantNotFound added in v1.4.2

func ErrParticipantNotFound(identity string) error

func ErrProcessFailed added in v1.8.6

func ErrProcessFailed(process string, err error) error

func ErrStreamNotFound

func ErrStreamNotFound(url string) error

func ErrTrackNotFound

func ErrTrackNotFound(trackID string) error

func ErrUploadFailed

func ErrUploadFailed(location string, err error) error

func Is

func Is(err, target error) bool

func New

func New(err string) error

Types

type ErrArray added in v1.5.5

type ErrArray struct {
	// contains filtered or unexported fields
}

func (*ErrArray) AppendErr added in v1.5.5

func (e *ErrArray) AppendErr(err error)

func (*ErrArray) Check added in v1.7.8

func (e *ErrArray) Check(err error)

func (*ErrArray) ToError added in v1.5.5

func (e *ErrArray) ToError() psrpc.Error

Jump to

Keyboard shortcuts

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