package
1.24.0
Repository: https://github.com/elastic/cloud-sdk-go.git
Documentation: pkg.go.dev

# Functions

IsRuntimeStatusCode returns true when the error is of *runtime.APIError type and the error status code matches the one passed as the argument.
IsRuntimeStatusCodeHasString returns true when the error is *runtime.APIError and the error status code matches the one passed as the argument.
NewJSONError creates a marshaleable error from an error.
Unwrap Deprecated: unpacks an error message returned from a client API call.
Wrap creates a new Error from the passed error, it doesn't modify the original error, but instead, tries to unwrap and extract the wrapped errors form the go-openapi/runtime operations.

# Constants

ErrTimedOutMsg is returned when the error is context.DeadlineExceeded.

# Variables

ErrDeploymentID is the message returned when a provided cluster id is not of the expected length (32 chars).
ErrMissingAPI is thrown when the *api.API reference is null.
ErrMissingElevatedPermissions is returned when the error code is 449.

# Structs

Error wraps a API error and implements both the Error and Unwrap interfaces.
JSONError wraps any incoming error inside this struct so that it can be correctly marshaled to JSON.