github.com/gotd/td/tgerr.Error.Code (field)
14 uses
github.com/gotd/td/tgerr (current package)
error.go#L16: Code int // 420
error.go#L26: Code: code,
error.go#L46: return e.Code == code
error.go#L117: return fmt.Sprintf("rpc error code %d: %s (%d)", e.Code, e.Type, e.Argument)
error.go#L119: return fmt.Sprintf("rpc error code %d: %s", e.Code, e.Message)
github.com/gotd/td/telegram
account_status.go#L114: Code: 401,
config_error.go#L51: if rpcErr.Code != 400 && rpcErr.Code != 406 {
logout.go#L45: if rpcErr, ok := tgerr.As(err); ok && rpcErr.Code == 401 {
metrics.go#L177: if v, ok := m.rpcCodes.Load(rpcErr.Code); ok {
metrics.go#L182: attribute.Int("code", rpcErr.Code),
metrics.go#L184: m.rpcCodes.Store(rpcErr.Code, opts)
tdlib_json.go#L216: jsonBuilder.Int(err.Code)
github.com/gotd/td/telegram/auth/qrlogin
qrlogin.go#L262: return rpcErr.Code >= 500
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |