Versions in this module Expand all Collapse all v0 v0.0.1 Sep 17, 2025 Changes in this version + var InternalServerError = apierror.NewAPIError("INTERNAL_SERVER_ERROR") + func NewErrorHandler(expectedErrs []ExpectedError) *errorHandler + type APIErrorFactory struct + SystemID string + func NewErrorFactory(systemID string) *APIErrorFactory + func (f *APIErrorFactory) APIError(id string) *apierror.DefaultAPIError + type ExpectedError struct + ID string + MaskedID string + Origin string + PublicData bool + Status int + func NewExpectedError(id string, status int, origin string) ExpectedError + func (e *ExpectedError) MaskAPIError(apiError apierror.APIError) (int, apierror.APIError) + func (e ExpectedError) WithID(id string) ExpectedError + func (e ExpectedError) WithMaskedID(maskedID string) ExpectedError + func (e ExpectedError) WithOrigin(origin string) ExpectedError + func (e ExpectedError) WithPublicData(isPublic bool) ExpectedError + func (e ExpectedError) WithStatus(status int) ExpectedError + type ExpectedErrorBuilder struct + func NewExpectedErrorBuilder(systemID string) *ExpectedErrorBuilder + func (b *ExpectedErrorBuilder) Build() ExpectedErrors + func (b *ExpectedErrorBuilder) WithErrors(errors ExpectedErrors) *ExpectedErrorBuilder + type ExpectedErrors []ExpectedError + func GenericErrors() ExpectedErrors + func (e ExpectedErrors) GetByID(id string) *ExpectedError + func (e ExpectedErrors) WithErrors(errors ...ExpectedError) ExpectedErrors + func (e ExpectedErrors) WithOrigin(origin string) ExpectedErrors