MCPcopy Create free account
hub / github.com/erpc/erpc / IsClientError

Function IsClientError

common/errors.go:2513–2522  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

2511}
2512
2513func IsClientError(err error) bool {
2514 return err != nil && (HasErrorCode(
2515 err,
2516 ErrCodeEndpointClientSideException,
2517 ErrCodeJsonRpcRequestUnmarshal,
2518 ErrCodeGetLogsExceededMaxAllowedRange,
2519 ErrCodeGetLogsExceededMaxAllowedAddresses,
2520 ErrCodeGetLogsExceededMaxAllowedTopics,
2521 ))
2522}
2523
2524// Severity represents how "alert-worthy" an error is.
2525type Severity string

Callers 6

ForwardMethod · 0.92
ForwardMethod · 0.92
PollLatestBlockNumberMethod · 0.92
fetchSyncingStateMethod · 0.92
ClassifySeverityFunction · 0.85

Calls 1

HasErrorCodeFunction · 0.85

Tested by

no test coverage detected