errors

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 5 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")
	ErrStreamAlreadyExists        = psrpc.NewErrorf(psrpc.AlreadyExists, "stream already exists")
	ErrBinAlreadyAdded            = psrpc.NewErrorf(psrpc.Internal, "bin already added to pipeline")
	ErrWrongHierarchy             = psrpc.NewErrorf(psrpc.Internal, "pipeline can contain bins or elements, not both")
	ErrNonStreamingPipeline       = psrpc.NewErrorf(psrpc.InvalidArgument, "UpdateStream called on non-streaming egress")
	ErrEgressNotFound             = psrpc.NewErrorf(psrpc.NotFound, "egress not found")
	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")
	ErrResourceExhausted          = psrpc.NewErrorf(psrpc.ResourceExhausted, "not enough CPU")
	ErrSubscriptionFailed         = psrpc.NewErrorf(psrpc.Internal, "failed to subscribe to track")
	ErrPipelineFrozen             = psrpc.NewErrorf(psrpc.Internal, "pipeline frozen")
)

Functions

func As added in v1.5.5

func As(err error, target any) bool

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 ErrParticipantNotFound added in v1.4.2

func ErrParticipantNotFound(identity string) error

func ErrProcessStartFailed added in v1.5.5

func ErrProcessStartFailed(err error) error

func ErrStateChangeFailed added in v1.7.8

func ErrStateChangeFailed(bin string, state gst.State) error

func ErrStreamNotFound

func ErrStreamNotFound(url string) error

func ErrTrackNotFound

func ErrTrackNotFound(trackID string) error

func ErrUploadFailed

func ErrUploadFailed(location string, err error) error

This can have many reasons, some related to invalid parameters, other because of system failure. Do not provide an error code until we have code to analyze the error from the underlying upload library further.

func ErrWebsocketClosed added in v1.5.6

func ErrWebsocketClosed(addr string) error

func Fatal added in v1.5.3

func Fatal(err error) error

func Is

func Is(err, target error) bool

func IsFatal added in v1.5.3

func IsFatal(err 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

type FatalError added in v1.5.3

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

func (*FatalError) Error added in v1.5.3

func (e *FatalError) Error() string

func (*FatalError) Unwrap added in v1.5.5

func (e *FatalError) Unwrap() error

Jump to

Keyboard shortcuts

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