MCPcopy Index your code
hub / github.com/PeerDB-io/peerdb / newAPIError

Function newAPIError

flow/cmd/api_error.go:26–28  ·  view source on GitHub ↗
(s *status.Status)

Source from the content-addressed store, hash-verified

24}
25
26func newAPIError(s *status.Status) *apiError {
27 return &apiError{status: s}
28}
29
30func NewInvalidArgumentApiError(err error, details ...protoadapt.MessageV1) *apiError {
31 return newAPIError(convertToStatus(codes.InvalidArgument, err, details...))

Callers 8

NewInternalApiErrorFunction · 0.85
NewUnavailableApiErrorFunction · 0.85
NewUnimplementedApiErrorFunction · 0.85
NewAlreadyExistsApiErrorFunction · 0.85
NewNotFoundApiErrorFunction · 0.85
AsAPIErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected