forked from pneymrl2f/nightingale
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
686 B
27 lines
686 B
// generated by stringer -type=SystemErrCode; DO NOT EDIT
|
|
|
|
package tchannel
|
|
|
|
import "fmt"
|
|
|
|
const (
|
|
_SystemErrCode_name_0 = "ErrCodeInvalidErrCodeTimeoutErrCodeCancelledErrCodeBusyErrCodeDeclinedErrCodeUnexpectedErrCodeBadRequestErrCodeNetwork"
|
|
_SystemErrCode_name_1 = "ErrCodeProtocol"
|
|
)
|
|
|
|
var (
|
|
_SystemErrCode_index_0 = [...]uint8{0, 14, 28, 44, 55, 70, 87, 104, 118}
|
|
_SystemErrCode_index_1 = [...]uint8{0, 15}
|
|
)
|
|
|
|
func (i SystemErrCode) String() string {
|
|
switch {
|
|
case 0 <= i && i <= 7:
|
|
return _SystemErrCode_name_0[_SystemErrCode_index_0[i]:_SystemErrCode_index_0[i+1]]
|
|
case i == 255:
|
|
return _SystemErrCode_name_1
|
|
default:
|
|
return fmt.Sprintf("SystemErrCode(%d)", i)
|
|
}
|
|
}
|