logNetworkClientError

public void logNetworkClientError(    @NonNull() String url,     @NonNull() HttpMethod httpMethod,     long startTime,     long endTime,     @NonNull() String errorType,     @NonNull() String errorMessage)

Logs the fact that an exception was thrown when attempting to make a network call.

These are client-side exceptions and not server-side exceptions, such as a DNS error or failure to connect to the remote server.

Parameters

url

the URL of the network call

httpMethod

the HTTP method of the network call

startTime

the time that the network call started

endTime

the time that the network call was completed

errorType

the type of the exception

errorMessage

the message returned by the exception


public void logNetworkClientError(    @NonNull() String url,     @NonNull() HttpMethod httpMethod,     long startTime,     long endTime,     @NonNull() String errorType,     @NonNull() String errorMessage,     @Nullable() String traceId)

Logs the fact that an exception was thrown when attempting to make a network call.

These are client-side exceptions and not server-side exceptions, such as a DNS error or failure to connect to the remote server.

Parameters

url

the URL of the network call

httpMethod

the HTTP method of the network call

startTime

the time that the network call started

endTime

the time that the network call was completed

errorType

the type of the exception

errorMessage

the message returned by the exception

traceId

the optional trace id that can be used to trace a particular request


public void logNetworkClientError(    @NonNull() String url,     @NonNull() HttpMethod httpMethod,     long startTime,     long endTime,     @NonNull() String errorType,     @NonNull() String errorMessage,     @Nullable() String traceId,     @Nullable() NetworkCaptureData networkCaptureData)

Logs the fact that an exception was thrown when attempting to make a network call.

These are client-side exceptions and not server-side exceptions, such as a DNS error or failure to connect to the remote server.

Parameters

url

the URL of the network call

httpMethod

the HTTP method of the network call

startTime

the time that the network call started

endTime

the time that the network call was completed

errorType

the type of the exception

errorMessage

the message returned by the exception

traceId

the optional trace id that can be used to trace a particular request

networkCaptureData

the additional data captured if network body capture is enabled for the URL