Documentation ¶
Index ¶
- Constants
- Variables
- func AppendAppErrorToGraphqlContext(ctx context.Context, err *appError)
- func GetAppErrorObject(err error) *appError
- func NewErrorWithFieldAndStatus(key string, field string, status int) *appError
- func NewErrorWithUnderlyingAndStatus(key string, err error, status int) *appError
- func NewInternalErrorWithUnderlying(key string, err error) *appError
- func TranslateAppErrorsToGraphqlResponse(ctx context.Context, err error, fieldsMap map[string]string) bool
Constants ¶
View Source
const ( ExtensionFieldNameKey = "field" ExtensionErrorStatus = "status" )
Variables ¶
View Source
var ErrorMessagesMap map[string]string
Functions ¶
func GetAppErrorObject ¶
func GetAppErrorObject(err error) *appError
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.