Package com.databricks.sdk.core
Class DatabricksError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.databricks.sdk.core.DatabricksException
-
- com.databricks.sdk.core.DatabricksError
-
- All Implemented Interfaces:
Serializable
public class DatabricksError extends DatabricksException
The result of checking whetherApiClient
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabricksError(int statusCode)
DatabricksError(String errorCode, int statusCode, Throwable cause)
DatabricksError(String errorCode, String message)
DatabricksError(String errorCode, String message, int statusCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorCode()
boolean
isMissing()
boolean
isRetriable()
boolean
isTooManyRequests()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getErrorCode
public String getErrorCode()
-
isMissing
public boolean isMissing()
-
isTooManyRequests
public boolean isTooManyRequests()
-
isRetriable
public boolean isRetriable()
-
-