Class LogsUploadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.monitor.ingestion.models.LogsUploadException
- All Implemented Interfaces:
Serializable
public class LogsUploadException
extends com.azure.core.exception.AzureException
An aggregate exception containing all inner exceptions that were caused from uploading logs.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLogsUploadException(List<com.azure.core.exception.HttpResponseException> logsUploadErrors, long failedLogsCount) Creates an instance ofLogsUploadException. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the total number for logs that failed to upload.List<com.azure.core.exception.HttpResponseException> Returns the list of all HTTP response exceptions.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LogsUploadException
public LogsUploadException(List<com.azure.core.exception.HttpResponseException> logsUploadErrors, long failedLogsCount) Creates an instance ofLogsUploadException.- Parameters:
logsUploadErrors- list of all HTTP response exceptions.failedLogsCount- the total number of logs that failed to upload.
-
-
Method Details
-
getLogsUploadErrors
Returns the list of all HTTP response exceptions.- Returns:
- The list of all errors.
-
getFailedLogsCount
public long getFailedLogsCount()Returns the total number for logs that failed to upload.- Returns:
- the total number of logs that failed to upload.
-