func github.com/go-faster/errors.New
73 uses
github.com/go-faster/errors (current package)
errors.go#L22: func New(text string) error {
github.com/go-faster/jx
dec_depth.go#L8: var errMaxDepth = errors.New("depth: maximum")
dec_depth.go#L18: var errNegativeDepth = errors.New("depth: negative")
dec_float.go#L288: return errors.New("empty")
dec_float.go#L313: return errors.New("dot as last char")
dec_float_big.go#L36: return nil, errors.New("invalid")
github.com/gotd/td/internal/crypto
check_dh.go#L32: return errors.New("p should be 2^2047 < p < 2^2048")
check_dh.go#L44: return errors.New("p is not prime number")
check_dh.go#L50: return errors.New("(p-1)/2 is not prime number")
check_gp.go#L45: return errors.New("g should be a quadratic residue mod p")
cipher_decrypt.go#L36: return nil, errors.New("msg_key is invalid")
cipher_decrypt.go#L68: return nil, errors.New("unknown auth key id")
cipher_decrypt.go#L71: return nil, errors.New("invalid encrypted data padding")
dh.go#L16: return errors.New("kex: bad g, g must be 1 < g < dh_prime - 1")
dh.go#L19: return errors.New("kex: bad g_a, g_a must be 1 < g_a < dh_prime - 1")
dh.go#L22: return errors.New("kex: bad g_b, g_b must be 1 < g_b < dh_prime - 1")
dh.go#L35: return errors.New("kex: bad g_a, g_a must be 2^{2048-64} < g_a < dh_prime - 2^{2048-64}")
dh.go#L38: return errors.New("kex: bad g_b, g_b must be 2^{2048-64} < g_b < dh_prime - 2^{2048-64}")
exchange.go#L35: return nil, errors.New("guess data from data_with_hash")
rsa_hashed.go#L44: return nil, errors.New("invalid data_with_hash")
rsa_hashed.go#L61: return nil, errors.New("hash mismatch")
rsa_pad.go#L126: return nil, errors.New("invalid encrypted_data")
rsa_pad.go#L158: return nil, errors.New("hash mismatch")
github.com/gotd/td/internal/crypto/srp
hash.go#L33: return Answer{}, errors.New("g_a is too big")
hash.go#L61: return Answer{}, errors.New("s_a is too big")
github.com/gotd/td/internal/exchange
client_flow.go#L39: return ClientExchangeResult{}, errors.New("ResPQ nonce mismatch")
client_flow.go#L66: return ClientExchangeResult{}, errors.New("server provided bad pq")
client_flow.go#L145: return ClientExchangeResult{}, errors.New("ServerDHParamsOk nonce mismatch")
client_flow.go#L148: return ClientExchangeResult{}, errors.New("ServerDHParamsOk server nonce mismatch")
client_flow.go#L164: return ClientExchangeResult{}, errors.New("ServerDHInnerData nonce mismatch")
client_flow.go#L167: return ClientExchangeResult{}, errors.New("ServerDHInnerData server nonce mismatch")
client_flow.go#L237: return ClientExchangeResult{}, errors.New("DhGenOk nonce mismatch")
client_flow.go#L240: return ClientExchangeResult{}, errors.New("DhGenOk server nonce mismatch")
client_flow.go#L252: return ClientExchangeResult{}, errors.New("key exchange verification failed: hash mismatch")
client_flow.go#L274: return ClientExchangeResult{}, errors.New("server respond with server_DH_params_fail")
errors.go#L9: var ErrKeyFingerprintNotFound = errors.New("key fingerprint not found")
proto.go#L90: return errors.New("bad msg type")
server_flow.go#L251: err := errors.New("auth_key is too big")
github.com/gotd/td/internal/mtproto
conn.go#L192: return errors.New("do Run on closed connection")
read.go#L28: var errRejected = errors.New("message rejected")
rpc.go#L67: return errors.New("answer unknown")
github.com/gotd/td/internal/mtproxy/faketls
faketls.go#L105: return 0, errors.New("unexpected record type handshake")
record.go#L44: return record{}, errors.New("record length is too big")
server_hello.go#L61: return errors.New("hmac digest mismatch")
github.com/gotd/td/internal/pool
pool.go#L153: var errDCIsClosed = errors.New("DC is closed")
pool.go#L271: return errors.New("DC already closed")
pool_conn.go#L14: var ErrConnDead = errors.New("connection dead")
github.com/gotd/td/internal/proto
container.go#L92: return errors.New("message length is too big")
github.com/gotd/td/internal/proto/codec
errors.go#L106: var ErrProtocolHeaderMismatch = errors.New("protocol header mismatch")
full.go#L74: var errSeqNoMismatch = errors.New("seq_no mismatch")
full.go#L75: var errCRCMismatch = errors.New("crc mismatch")
github.com/gotd/td/internal/rpc
engine.go#L104: return errors.New("handler already called")
errors.go#L26: var ErrEngineClosed = errors.New("engine was closed")
github.com/gotd/td/session
session.go#L109: var ErrNotFound = errors.New("session storage: not found")
storage_file.go#L21: return nil, errors.New("nil session storage is invalid")
storage_file.go#L41: return errors.New("nil session storage is invalid")
storage_mem.go#L92: return errors.New("StoreSession called on StorageMemory(nil)")
github.com/gotd/td/session/tdesktop
errors.go#L23: ErrKeyInfoDecrypt = errors.New("key data decrypt")
errors.go#L25: ErrNoAccounts = errors.New("tdesktop data does not contain accounts")
file.go#L95: return nil, errors.New("hash mismatch")
local_key.go#L66: return nil, errors.New("msg_key mismatch")
github.com/gotd/td/tdjson
errors.go#L24: var ErrTypeIDNotFound = errors.New("@type field is expected, but not found")
github.com/gotd/td/telegram
builder.go#L92: return nil, errors.New("no APP_HASH provided")
session.go#L42: return errors.New("corrupted key")
github.com/gotd/td/telegram/auth
flow.go#L53: return errors.New("no UserAuthenticator provided")
flow.go#L154: return UserInfo{}, errors.New("not implemented")
flow.go#L222: var ErrPasswordNotProvided = errors.New("password requested but not provided")
user.go#L17: var ErrPasswordInvalid = errors.New("invalid password")
user.go#L94: var ErrPasswordAuthNeeded = errors.New("2FA required")
github.com/gotd/td/telegram/auth/qrlogin
token.go#L34: return Token{}, errors.New("token is empty")
github.com/gotd/td/telegram/dcs
dns.go#L58: return tg.HelpConfigSimple{}, errors.New("dataRSA has invalid size")
dns.go#L74: return tg.HelpConfigSimple{}, errors.New("hash mismatch")
github.com/gotd/td/telegram/internal/manager
conn.go#L177: return errors.New("not implemented")
|
The pages are generated with Golds v0.6.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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |