Documentation
¶
Index ¶
Constants ¶
View Source
const ErrCodeInternalServerError = "internal_server_error"
Variables ¶
View Source
var ErrInternal = ErrInternalServerError
View Source
var ErrInternalServerError = New( ErrCodeInternalServerError, "iekšēja servera kļūda", ).SetHttpStatusCode(http.StatusInternalServerError)
Functions ¶
Types ¶
type E ¶
type E interface {
error
Is(err error) bool
ErrorCode() string // unique identifier for the type of underlying cause
HttpStatusCode() int
SetHttpStatusCode(code int) E
}
func InternalServerError ¶
func InternalServerError() E
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error implements the E interface
func (Error) HttpStatusCode ¶
func (Error) SetHttpStatusCode ¶
Click to show internal directories.
Click to hide internal directories.