Documentation ¶
Index ¶
- Variables
- func AppendError(err error, nonCriticalErrors []error) ([]error, error)
- func GeneralServerError(ctx context.Context, w http.ResponseWriter, err error)
- func HandleError(err error) ([]error, error)
- func MergeErrors(errorArrayToMerge ...[]error) (mergedErrors []error)
- func NewGeneralError(err error) *httputils.JSONClientError
Constants ¶
This section is empty.
Variables ¶
View Source
var NonCriticalErrors = []int32{http.StatusForbidden, http.StatusUnauthorized}
NonCriticalErrors is an array of error statuses, that are non-critical. That means, that this error can be silenced and displayed to the user as a warning on the frontend side.
Functions ¶
func GeneralServerError ¶
func GeneralServerError(ctx context.Context, w http.ResponseWriter, err error)
func HandleError ¶
func MergeErrors ¶
func NewGeneralError ¶
func NewGeneralError(err error) *httputils.JSONClientError
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.