errors

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoConfig             = psrpc.NewErrorf(psrpc.Internal, "missing config")
	ErrInvalidRPC           = psrpc.NewErrorf(psrpc.MalformedRequest, "invalid request")
	ErrGhostPadFailed       = psrpc.NewErrorf(psrpc.Internal, "failed to add ghost pad to bin")
	ErrStreamAlreadyExists  = psrpc.NewErrorf(psrpc.AlreadyExists, "stream already exists")
	ErrNonStreamingPipeline = psrpc.NewErrorf(psrpc.InvalidArgument, "UpdateStream called on non-streaming egress")
	ErrEgressNotFound       = psrpc.NewErrorf(psrpc.NotFound, "egress not found")
	ErrProfileNotFound      = psrpc.NewErrorf(psrpc.NotFound, "profile not found")
)

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 ErrProcessStartFailed added in v1.5.5

func ErrProcessStartFailed(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

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) 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