errors

package
v0.0.0-...-faeea24 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStreamCancelled = reg("stream cancelled by context")
	ErrStreamReset     = reg("stream already been reset")
	ErrReqBodyTooLong  = reg("internal: request body larger than specified content length")
	ErrReqBodyRead     = reg("internal: request body read error")
	ErrFramerWrite     = reg("internal: framer write error")
)
View Source
var (
	ErrStreamResetRemote = func(streamID uint32, code http2.ErrCode) StreamError {
		return StreamError{"remote stream reset", streamID, h2Code(code)}
	}
	ErrStreamResetLocal = func(streamID uint32, code http2.ErrCode) StreamError {
		return StreamError{"local stream reset", streamID, h2Code(code)}
	}
)

Functions

This section is empty.

Types

type StreamError

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

func (StreamError) Error

func (e StreamError) Error() string

func (StreamError) Is

func (e StreamError) Is(err error) bool

func (StreamError) Unwrap

func (e StreamError) Unwrap() error

func (StreamError) Wrap

func (e StreamError) Wrap(err error) StreamError

Jump to

Keyboard shortcuts

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