This section is empty.
View Sourcevar ( ErrBadRequest = errors.New("the request is invalid") ErrUnauthenticated = errors.New("the request does not have valid authentication (AuthN) credentials for the operation") ErrPermissionDenied = errors.New("the caller does not have permission to execute the specified operation") ErrNotFound = errors.New("the operation was performed on a resource that does not exist") ErrResourceConflict = errors.New("maps to all HTTP 409 (Conflict) responses") ErrTooManyRequests = errors.New("maps to HTTP code: 429 Too Many Requests") ErrCancelled = errors.New("the operation was explicitly canceled by the caller") ErrInternalError = errors.New("some invariants expected by the underlying system have been broken") ErrNotImplemented = errors.New("the operation is not implemented or is not supported/enabled in this service") ErrTemporarilyUnavailable = errors.New("the service is currently unavailable") ErrDeadlineExceeded = errors.New("the deadline expired before the operation could complete") ErrInvalidState = inheritErr(ErrBadRequest, "unexpected state") ErrInvalidParameterValue = inheritErr(ErrBadRequest, "supplied value for a parameter was invalid") ErrResourceDoesNotExist = inheritErr(ErrNotFound, "operation was performed on a resource that does not exist") ErrAborted = inheritErr(ErrResourceConflict, "the operation was aborted, typically due to a concurrency issue such as a sequencer check failure") ErrAlreadyExists = inheritErr(ErrResourceConflict, "operation was rejected due a conflict with an existing resource") ErrResourceAlreadyExists = inheritErr(ErrResourceConflict, "operation was rejected due a conflict with an existing resource") ErrResourceExhausted = inheritErr(ErrTooManyRequests, "operation is rejected due to per-user rate limiting") ErrRequestLimitExceeded = inheritErr(ErrTooManyRequests, "cluster request was rejected because it would exceed a resource limit") ErrUnknown = inheritErr(ErrInternalError, "this error is used as a fallback if the platform-side mapping is missing some reason") ErrDataLoss = inheritErr(ErrInternalError, "unrecoverable data loss or corruption") )
GetAPIError returns the API error from the response. If the response is not an error, it returns nil.
IsMissing tells if error is about missing resource
APIError represents a standard Databricks API error.
Error returns the error message string.
ErrorDetails returns the error details of the APIError.
IsMissing tells if it is missing resource.
IsRetriable returns true if error is retriable.
IsTooManyRequests shows rate exceeded limits.
Describes violations in a client request. This error type focuses on the syntactic aspects of the request.
type BadRequestFieldViolation struct { Field string Description string }
type DebugInfo struct { StackEntries []string Detail string }
Describes additional debugging info.
type ErrorDetail struct { Type string `json:"@type,omitempty"` Reason string `json:"reason,omitempty"` Domain string `json:"domain,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` }
Deprecated: Use ErrorDetails instead.
GetErrorInfo returns all entries in the list of error details of type `ErrorInfo`.
Deprecated: Use APIError.ErrorDetails instead.
ErrorDetails contains the error details of an API error. It is the union of known error details types and unknown details.
ErrorInfo describes the cause of the error with structured details.
Provides links to documentation or for performing an out of band action.
For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.
Describes what preconditions have failed.
type PreconditionFailureViolation struct { Type string Subject string Description string }
Describes how a quota check failed.
For example if a daily limit was exceeded for the calling project, a service could respond with a QuotaFailure detail containing the project id and the description of the quota limit that was exceeded. If the calling project hasn't enabled the service in the developer console, then a service could respond with the project id and set `service_disabled` to true.
Also see RetryInfo and Help types for other details about handling a quota failure.
type QuotaFailureViolation struct { Subject string Description string }
type RequestInfo struct { RequestID string ServingData string }
RequestInfo Contains metadata about the request that clients can attach when filing a bug or providing other forms of feedback.
Describes the resource that is being accessed.
RetryInfo describes when the clients can retry a failed request. Clients could ignore the recommendation here or retry when this information is missing from error responses.
It's always recommended that clients should use exponential backoff when retrying.
Clients should wait until `retry_delay` amount of time has passed since receiving the error response before retrying. If retrying requests also fail, clients should use an exponential backoff scheme to gradually increase the delay between retries based on `retry_delay`, until either a maximum number of retries have been reached or a maximum retry delay cap has been reached.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4