LogsUploadException Class

public class LogsUploadException
extends AzureException

An aggregate exception containing all inner exceptions that were caused from uploading logs.

Constructor Summary

Constructor Description
LogsUploadException(List<HttpResponseException> logsUploadErrors, long failedLogsCount)

Creates an instance of LogsUploadException.

Method Summary

Modifier and Type Method and Description
long getFailedLogsCount()

Returns the total number for logs that failed to upload.

List<HttpResponseException> getLogsUploadErrors()

Returns the list of all HTTP response exceptions.

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

LogsUploadException

public LogsUploadException(List<HttpResponseException> logsUploadErrors, long failedLogsCount)

Creates an instance of LogsUploadException.

Parameters:

logsUploadErrors - list of all HTTP response exceptions.
failedLogsCount - the total number of logs that failed to upload.

Method Details

getFailedLogsCount

public long getFailedLogsCount()

Returns the total number for logs that failed to upload.

Returns:

the total number of logs that failed to upload.

getLogsUploadErrors

public List<HttpResponseException> getLogsUploadErrors()

Returns the list of all HTTP response exceptions.

Returns:

The list of all errors.

Applies to