forked from quic-go/quic-go
move all error things to new qerr package, replacing errorcodes
This commit is contained in:
38
qerr/errorcode_string.go
Normal file
38
qerr/errorcode_string.go
Normal file
@@ -0,0 +1,38 @@
|
||||
// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT
|
||||
|
||||
package qerr
|
||||
|
||||
import "fmt"
|
||||
|
||||
const (
|
||||
_ErrorCode_name_0 = "InternalError"
|
||||
_ErrorCode_name_1 = "InvalidFrameData"
|
||||
_ErrorCode_name_2 = "DecryptionFailure"
|
||||
_ErrorCode_name_3 = "PeerGoingAway"
|
||||
_ErrorCode_name_4 = "NetworkIdleTimeout"
|
||||
)
|
||||
|
||||
var (
|
||||
_ErrorCode_index_0 = [...]uint8{0, 13}
|
||||
_ErrorCode_index_1 = [...]uint8{0, 16}
|
||||
_ErrorCode_index_2 = [...]uint8{0, 17}
|
||||
_ErrorCode_index_3 = [...]uint8{0, 13}
|
||||
_ErrorCode_index_4 = [...]uint8{0, 18}
|
||||
)
|
||||
|
||||
func (i ErrorCode) String() string {
|
||||
switch {
|
||||
case i == 1:
|
||||
return _ErrorCode_name_0
|
||||
case i == 4:
|
||||
return _ErrorCode_name_1
|
||||
case i == 12:
|
||||
return _ErrorCode_name_2
|
||||
case i == 16:
|
||||
return _ErrorCode_name_3
|
||||
case i == 25:
|
||||
return _ErrorCode_name_4
|
||||
default:
|
||||
return fmt.Sprintf("ErrorCode(%d)", i)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user