com.microsoft.azure.kusto.data.exceptions.DataServiceException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kusto-data Show documentation
Show all versions of kusto-data Show documentation
Kusto client library for executing queries and retrieving data
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package com.microsoft.azure.kusto.data.exceptions;
import org.jetbrains.annotations.Nullable;
public class DataServiceException extends KustoDataExceptionBase {
public DataServiceException(String ingestionSource, String message, boolean isPermanent) {
this(ingestionSource, message, null, isPermanent);
}
public DataServiceException(String ingestionSource, String message, Exception exception, boolean isPermanent) {
super(ingestionSource, message, exception, isPermanent);
}
@Nullable
public Integer getStatusCode() {
Throwable cause = getCause();
if (!(cause instanceof WebException)) {
return null;
}
return ((WebException) cause).getStatusCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy