errors

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoConfig                = psrpc.NewErrorf(psrpc.InvalidArgument, "missing config")
	ErrInvalidAudioOptions     = psrpc.NewErrorf(psrpc.InvalidArgument, "invalid audio options")
	ErrInvalidVideoOptions     = psrpc.NewErrorf(psrpc.InvalidArgument, "invalid video options")
	ErrInvalidAudioPreset      = psrpc.NewErrorf(psrpc.InvalidArgument, "invalid audio encoding preset")
	ErrInvalidVideoPreset      = psrpc.NewErrorf(psrpc.InvalidArgument, "invalid video encoding preset")
	ErrUnsupportedEncodeFormat = psrpc.NewErrorf(psrpc.InvalidArgument, "unsupported mime type for encoder")
	ErrUnableToAddPad          = psrpc.NewErrorf(psrpc.Internal, "could not add pads to bin")
	ErrIngressNotFound         = psrpc.NewErrorf(psrpc.NotFound, "ingress not found")
	ErrServerCapacityExceeded  = psrpc.NewErrorf(psrpc.ResourceExhausted, "server capacity exceeded")
	ErrServerShuttingDown      = psrpc.NewErrorf(psrpc.Unavailable, "server shutting down")
	ErrMissingStreamKey        = psrpc.NewErrorf(psrpc.InvalidArgument, "missing stream key")
	ErrPrerollBufferReset      = psrpc.NewErrorf(psrpc.Internal, "preroll buffer reset")
)

Functions

func As added in v0.9.0

func As(err error, target any) bool

func ErrCouldNotParseConfig

func ErrCouldNotParseConfig(err error) psrpc.Error

func ErrFromGstFlowReturn

func ErrFromGstFlowReturn(ret gst.FlowReturn) psrpc.Error

func ErrHttpRelayFailure added in v0.9.0

func ErrHttpRelayFailure(statusCode int) psrpc.Error

func ErrInvalidIngress added in v0.9.0

func ErrInvalidIngress(s string) psrpc.Error

func Is added in v0.9.0

func Is(err, target error) bool

func New

func New(err string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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