apierrors

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Message     string
	StatusCode  int
	Body        string
	RawResponse *http.Response
}

func NewAPIError

func NewAPIError(message string, statusCode int, body string, httpRes *http.Response) *APIError

func (*APIError) Error

func (e *APIError) Error() string

type CollectionError

type CollectionError struct {
	ErrorCode components.CollectionErrorErrorCode `json:"errorCode"`
	HTTPMeta  components.HTTPMetadata             `json:"-"`
}

func (*CollectionError) Error

func (e *CollectionError) 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"`
	HTTPMeta         components.HTTPMetadata                `json:"-"`
}

func (*GleanDataError) Error

func (e *GleanDataError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL