Documentation
¶
Index ¶
Constants ¶
View Source
const ( BlameUser = http.StatusBadRequest BlameServer = http.StatusInternalServerError )
Variables ¶
View Source
var ( ErrInvalidServer = New("InvalidServer", "malformed parameter `server` provided", BlameUser) ErrCantMarshal = New("CantMarshal", "failed to populate matrix with metadata provided", BlameServer) )
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Type string `json:"type"`
Details interface{} `json:"details"`
Blame int `json:"-"`
}
func (*Error) Wrapped ¶
func (e *Error) Wrapped() *WrappedError
type WrappedError ¶
type WrappedError struct {
Error *Error `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.