Documentation
¶
Index ¶
- type APIConnectionError
- type APIError
- type APIStatusError
- func CreateAPIErrorFromHTTP(message string, statusCode int, requestID string, body any) *APIStatusError
- func NewAPIStatusError(message string, statusCode int, requestID string, body any) *APIStatusError
- func NewAPIStatusErrorWithRetryable(message string, statusCode int, requestID string, body any, retryable bool) *APIStatusError
- type APITimeoutError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConnectionError ¶ added in v0.8.17
type APIConnectionError struct {
*APIError
}
func NewAPIConnectionError ¶ added in v0.8.17
func NewAPIConnectionError(message string) *APIConnectionError
func NewAPIConnectionErrorWithRetryable ¶ added in v0.8.17
func NewAPIConnectionErrorWithRetryable(message string, retryable bool) *APIConnectionError
func (*APIConnectionError) Unwrap ¶ added in v0.8.17
func (e *APIConnectionError) Unwrap() error
type APIError ¶ added in v0.8.17
func NewAPIError ¶ added in v0.8.17
type APIStatusError ¶ added in v0.8.17
func CreateAPIErrorFromHTTP ¶ added in v0.8.17
func CreateAPIErrorFromHTTP(message string, statusCode int, requestID string, body any) *APIStatusError
func NewAPIStatusError ¶ added in v0.8.17
func NewAPIStatusError(message string, statusCode int, requestID string, body any) *APIStatusError
func NewAPIStatusErrorWithRetryable ¶ added in v0.8.17
func (*APIStatusError) Error ¶ added in v0.8.17
func (e *APIStatusError) Error() string
func (*APIStatusError) Unwrap ¶ added in v0.8.17
func (e *APIStatusError) Unwrap() error
type APITimeoutError ¶ added in v0.8.17
type APITimeoutError struct {
*APIConnectionError
}
func NewAPITimeoutError ¶ added in v0.8.17
func NewAPITimeoutError(message string) *APITimeoutError
func NewAPITimeoutErrorWithRetryable ¶ added in v0.8.17
func NewAPITimeoutErrorWithRetryable(message string, retryable bool) *APITimeoutError
func (*APITimeoutError) Unwrap ¶ added in v0.8.17
func (e *APITimeoutError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.