MCPcopy Create free account
hub / github.com/dgrr/http2 / NewError

Function NewError

errors.go:90–96  ·  view source on GitHub ↗

NewError creates a new Error.

(e ErrorCode, debug string)

Source from the content-addressed store, hash-verified

88
89// NewError creates a new Error.
90func NewError(e ErrorCode, debug string) Error {
91 return Error{
92 code: e,
93 debug: debug,
94 frameType: FrameResetStream,
95 }
96}
97
98func NewGoAwayError(e ErrorCode, debug string) Error {
99 return Error{

Callers 2

nextFieldMethod · 0.85
errors.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected