Skip to main content

Function: handlePingCheckError()

handlePingCheckError(error: unknown, context: PingOperationContext): MonitorCheckResult

Defined in: electron/services/monitoring/utils/pingErrorHandling.ts:51

Handles errors from ping operations and returns a standardized error result.

Parameters

error

unknown

The error that occurred during the ping operation

context

PingOperationContext

Additional context about the ping operation

Returns

MonitorCheckResult

A standardized error result with status "down"

Remarks

This function processes errors from ping connectivity checks and returns a consistent MonitorCheckResult structure. It logs the error details and provides appropriate error messages for different failure scenarios.

See

PingOperationContext