MCPcopy Index your code
hub / github.com/GetStream/stream-go2 / Error

Method Error

errors.go:32–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (e APIError) Error() string {
33 return e.Detail
34}
35
36// ToAPIError tries to cast the provided error to APIError type, returning the
37// obtained APIError and whether the operation was successful.

Callers 15

TestErrorStringFunction · 0.95
TestInvalidateUserCacheFunction · 0.80
TestGetNextPageReactionsFunction · 0.80
Test_decodeJSONHookFunction · 0.80
Test_parseIntValueFunction · 0.80
TestConfigFunction · 0.80
TestNewFromEnvFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestErrorStringFunction · 0.76
TestInvalidateUserCacheFunction · 0.64
TestGetNextPageReactionsFunction · 0.64
Test_decodeJSONHookFunction · 0.64
Test_parseIntValueFunction · 0.64
TestConfigFunction · 0.64
TestNewFromEnvFunction · 0.64