Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FError ¶
type FError interface { Message() string // error message from the origin Layer() string // layer where the error occurred (e.g. "controller", "service", "db", "validator") UserMsg() string // message to be shown to the user Kind() string // type of the error (e.g. "db execution") Internal() string // internal error message SetLayer(layer string) // set the layer where the error occurred (e.g. "controller", "service", "db", "validator") SetUserMsg(userMsg string) // set the message to be shown to the user SetKind(kind string) // set the type of the error (e.g. "db execution") SetInternal(internal string) // set the internal error message Error() string // string representation of the error }
Click to show internal directories.
Click to hide internal directories.