Debian Codegraph @

proto/frame/error.go

raw
1 package frame
2
3 import (
4 "fmt"
5 )
6
7 const (
8 NoError = iota
9 ProtocolError
10 InternalError
11 FlowControlError
12 StreamClosed
13 FrameSizeError
14 RefusedStream
15 Cancel
16 NoSuchError
17 )
18
19 type FramingError struct {
20 error
21 }
22
23 func protoError(fmtstr string, args ...interface{}) FramingError {
24 return FramingError{fmt.Errorf(fmtstr, args...)}
25 }