Class DatabricksError

  • All Implemented Interfaces:
    Serializable

    public class DatabricksError
    extends DatabricksException
    The result of checking whether 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.

    See Also:
    Serialized Form
    • Constructor Detail

      • DatabricksError

        public DatabricksError​(int statusCode)
      • DatabricksError

        public DatabricksError​(String errorCode,
                               String message)
      • DatabricksError

        public DatabricksError​(String errorCode,
                               String message,
                               int statusCode)
      • DatabricksError

        public DatabricksError​(String errorCode,
                               int statusCode,
                               Throwable cause)
    • Method Detail

      • getErrorCode

        public String getErrorCode()
      • isMissing

        public boolean isMissing()
      • isTooManyRequests

        public boolean isTooManyRequests()
      • isRetriable

        public boolean isRetriable()