Share via


ErrorContext Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.service.messaging.ErrorContext

public class ErrorContext

The context for a given connection loss event for MessageFeedbackProcessorClient, FileUploadNotificationProcessorClient, and MessagingClient. The context includes the cause of the connection loss and makes a distinction between network level issues (no internet) and IoT Hub level issues (resource not found, throttling, internal server error, etc.).

Constructor Details

ErrorContext

public ErrorContext(IOException exception)

Parameters:

exception

ErrorContext

public ErrorContext(IotHubException exception)

Parameters:

exception

Applies to