Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrToStatus ¶
ErrToStatus tries to extract status code from error. If the error is not ErrWithStatus returns status 500.
Types ¶
type ErrWithStatus ¶
type ErrWithStatus struct {
// contains filtered or unexported fields
}
ErrWithStatus represents error with status code. It can be hidden behind standard error interface and wrapped with errors.Wrap.
Click to show internal directories.
Click to hide internal directories.