public class DatabricksError extends DatabricksException
ApiClient
should retry a request.
If shouldRetry is true, the request failed and must be retried. If shouldRetry is false, then the behavior depends on the value of error. If error is null, the request was successful and should be parsed and returned to the user. If error is not null, the request has failed in an unrecoverable way and this exception should be thrown, potentially wrapped in another exception.
Constructor and Description |
---|
DatabricksError(int statusCode) |
DatabricksError(String errorCode,
int statusCode,
Throwable cause) |
DatabricksError(String errorCode,
String message) |
DatabricksError(String errorCode,
String message,
int statusCode) |
DatabricksError(String errorCode,
String message,
int statusCode,
List<ErrorDetail> details) |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode() |
List<ErrorDetail> |
getErrorInfo() |
boolean |
isMissing() |
boolean |
isRetriable() |
boolean |
isTooManyRequests() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DatabricksError(int statusCode)
public DatabricksError(String errorCode, String message, int statusCode, List<ErrorDetail> details)
public List<ErrorDetail> getErrorInfo()
public String getErrorCode()
public boolean isMissing()
public boolean isTooManyRequests()
public boolean isRetriable()
Copyright © 2023. All rights reserved.