Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogAndSendServerError ¶
Types ¶
type ServerError ¶
type ServerError struct { Errors struct { Fields map[string][]string `json:"fields"` Server []string `json:"server"` } `json:"errors"` }
func SingleFieldError ¶
func SingleFieldError(field string, fieldError string) *ServerError
func SingleServerError ¶
func SingleServerError(serverErrorDescription string) *ServerError
func (*ServerError) AddFieldError ¶
func (se *ServerError) AddFieldError(field string, fieldError string)
func (*ServerError) AddServerError ¶
func (se *ServerError) AddServerError(serverErrorDescription string)
Click to show internal directories.
Click to hide internal directories.