Documentation
¶
Index ¶
- Constants
- type Error
- func ErrorBindingJSON(err error) Error
- func ErrorBuildingEntityFromDTO(err error) Error
- func ErrorEntityCreation(err error) Error
- func ErrorEntityQuery(err error) Error
- func ErrorEntityQueryByUser(err error) Error
- func ErrorEntityRead(err error) Error
- func ErrorEntityRemove(err error) Error
- func ErrorEntityUpdate(err error) Error
- func ErrorNotFound(err error) Error
- func ErrorPartialEntityIncomplete(err error) Error
- func NewError(code string, err error) Error
Constants ¶
View Source
const ( // E4001 Error binding JSON E4001 = "4001" // E4002 Partial entity incomplete some field is missing E4002 = "4002" // E4003 Entity building from DTO E4003 = "4003" // E4004 Entity not found E4004 = "4004" // E4005 - Entity Query (TQL) error E4005 = "4005" // E5001 - Entity creation error E5001 = "5001" // E5002 - Entity update error E5002 = "5002" // E5003 - Entity read error E5003 = "5003" // E5004 - Entity remove error E5004 = "5004" // E5005 - Entity Query (TQL) error E5005 = "5005" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error api error message
func ErrorBindingJSON ¶
ErrorBindingJSON returns a 4001 error
func ErrorBuildingEntityFromDTO ¶
ErrorBuildingEntityFromDTO returns a 4003 error
func ErrorEntityCreation ¶
ErrorEntityCreation returns a 5001 error
func ErrorEntityQuery ¶
ErrorEntityQuery returns a 5005 error
func ErrorEntityQueryByUser ¶ added in v0.3.0
ErrorEntityQueryByUser returns a 4005 error
func ErrorEntityRemove ¶
ErrorEntityRemove returns a 5004 error
func ErrorEntityUpdate ¶
ErrorEntityUpdate returns a 5002 error
func ErrorNotFound ¶ added in v0.3.1
ErrorNotFound returns a 4004 error
func ErrorPartialEntityIncomplete ¶
ErrorPartialEntityIncomplete returns a 4002 error
Click to show internal directories.
Click to hide internal directories.