Documentation ¶
Index ¶
- func Render(w http.ResponseWriter, err []Message)
- type Message
- func CannotDelete(entity, association string) Message
- func CannotSaveChanges() Message
- func DBError() Message
- func DecodeError() Message
- func GetMessage(msg string, code int) Message
- func InternalServerError() Message
- func InvalidID() Message
- func NetworkError() Message
- func Parser(msg Message) []Message
- func RecordNotFound() Message
- func SameNameExist() Message
- func Unauthorized() Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { Code int `json:"code"` Message string `json:"message"` Source string `json:"source"` }
Message - error model
func CannotDelete ¶
CannotDelete - errors for cannot delete associations
func CannotSaveChanges ¶
func CannotSaveChanges() Message
CannotSaveChanges - errors when an item cannot be changed
func GetMessage ¶
GetMessage - get errorx.Message object
Click to show internal directories.
Click to hide internal directories.