Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
func NewAPIError ¶
type CollectionError ¶
type CollectionError struct {
ErrorCode components.CollectionErrorErrorCode `json:"errorCode"`
HTTPMeta components.HTTPMetadata `json:"-"`
}
func (*CollectionError) Error ¶
func (e *CollectionError) Error() string
type ErrorInfoResponse ¶ added in v0.12.0
type ErrorInfoResponse struct {
// Error message describing what went wrong
Error_ string `json:"error"`
// Additional details about the error
Message *string `json:"message,omitempty"`
HTTPMeta components.HTTPMetadata `json:"-"`
}
ErrorInfoResponse - Error response for custom metadata operations
func (*ErrorInfoResponse) Error ¶ added in v0.12.0
func (e *ErrorInfoResponse) Error() string
type ErrorResponse ¶ added in v0.11.29
type ErrorResponse struct {
// Client-facing error message describing what went wrong
Message *string `json:"message,omitempty"`
HTTPMeta components.HTTPMetadata `json:"-"`
}
ErrorResponse - Error response returned for failed requests
func (*ErrorResponse) Error ¶ added in v0.11.29
func (e *ErrorResponse) Error() string
type GleanDataError ¶
type GleanDataError struct {
// Indicates the gmail results could not be fetched due to bad token.
BadGmailToken *bool `json:"badGmailToken,omitempty"`
// Indicates the outlook results could not be fetched due to bad token.
BadOutlookToken *bool `json:"badOutlookToken,omitempty"`
// Indicates results could not be fetched due to invalid operators in the query.
InvalidOperators []components.InvalidOperatorValueError `json:"invalidOperators,omitempty"`
ErrorMessages []components.ErrorMessage `json:"errorMessages,omitempty"`
// Indicates the federated search results could not be fetched due to rate limiting.
FederatedSearchRateLimitError *bool `json:"federatedSearchRateLimitError,omitempty"`
HTTPMeta components.HTTPMetadata `json:"-"`
}
func (*GleanDataError) Error ¶
func (e *GleanDataError) Error() string
type PlatformProblemDetailError ¶ added in v0.13.0
type PlatformProblemDetailError struct {
// URI identifying the error type.
Type string `json:"type"`
// Short, human-readable summary of the error.
Title string `json:"title"`
// HTTP status code mirrored from the response.
Status int64 `json:"status"`
// Human-readable explanation specific to this occurrence.
Detail string `json:"detail"`
// Stable machine-readable error code.
Code components.PlatformProblemDetailCode `json:"code"`
// Direct URL to documentation for this error code.
DocumentationURL *string `json:"documentation_url,omitempty"`
// Platform-generated request ID for support correlation.
RequestID string `json:"request_id"`
// Field-level validation problems, one entry per offending field.
Errors []components.PlatformProblemDetailError `json:"errors,omitempty"`
HTTPMeta components.HTTPMetadata `json:"-"`
}
PlatformProblemDetailError - Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable classification and self-service remediation.
func (*PlatformProblemDetailError) Error ¶ added in v0.13.0
func (e *PlatformProblemDetailError) Error() string
Click to show internal directories.
Click to hide internal directories.