MCPcopy
hub / github.com/PeerDB-io/peerdb / NewInternalApiError

Function NewInternalApiError

flow/cmd/api_error.go:38–40  ·  view source on GitHub ↗
(err error, details ...protoadapt.MessageV1)

Source from the content-addressed store, hash-verified

36}
37
38func NewInternalApiError(err error, details ...protoadapt.MessageV1) *apiError {
39 return newAPIError(convertToStatus(codes.Internal, err, details...))
40}
41
42func NewUnavailableApiError(err error, details ...protoadapt.MessageV1) *apiError {
43 return newAPIError(convertToStatus(codes.Unavailable, err, details...))

Callers 15

ResetMirrorSequencesMethod · 0.85
ValidateCDCMirrorMethod · 0.85
validateCDCMirrorImplMethod · 0.85
GetPeerInfoMethod · 0.85
GetPeerTypeMethod · 0.85
ListPeersMethod · 0.85
GetColumnsMethod · 0.85
GetSlotLagHistoryMethod · 0.85
GetAlertConfigsMethod · 0.85
PostAlertConfigMethod · 0.85
DeleteAlertConfigMethod · 0.85

Calls 2

newAPIErrorFunction · 0.85
convertToStatusFunction · 0.85

Tested by

no test coverage detected