Versions in this module Expand all Collapse all v0 v0.0.3 Apr 14, 2026 v0.0.2 Apr 13, 2026 Changes in this version + type APIError struct + Code ErrorCode + Message string + func (e *APIError) AsError() error + func (e *APIError) Error() string + type APIResponse struct + Data T + Details ResponseDetails + Error *APIError + Pagination *filtering.Pagination + func NewAPIErrorResponse(issue string, code ErrorCode, details ResponseDetails) *APIResponse[any] + type ErrorCode string + const ErrCircuitBroken + const ErrDataNotFound + const ErrDecodingRequestInput + const ErrEncryptionIssue + const ErrFetchingSessionContextData + const ErrMisbehavingDependency + const ErrNothingSpecific + const ErrSecretGeneration + const ErrTalkingToDatabase + const ErrTalkingToSearchProvider + const ErrUserIsBanned + const ErrUserIsNotAuthorized + const ErrValidatingRequestInput + type ResponseDetails struct + CurrentAccountID string + TraceID string v0.0.1 Apr 12, 2026 Changes in this version + func RegisterHTTPErrorMapper(m HTTPErrorMapper) + func ToAPIError(err error) (code types.ErrorCode, msg string) + type HTTPErrorMapper interface + Map func(err error) (code types.ErrorCode, msg string, ok bool) + var PlatformMapper HTTPErrorMapper = platformMapper{}