Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlingGRPC ¶
HandlingGRPC handle an error by defining HTTP response body and code
Types ¶
type Error ¶
type Error struct { Code int `json:"code"` Message string `json:"message"` Trace []string `json:"-"` Err error `json:"-"` StatusCode int `json:"-"` }
Error defines the properties for a basic error response
func NotFoundError ¶
NotFoundError creates and returns 404 `Error`.
Click to show internal directories.
Click to hide internal directories.