Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrorDetail ¶
IsErrorDetail check if error interface is errorDetail
Types ¶
type Error ¶ added in v1.0.5
type Error struct {
// File name file from caller new error
File string `json:"file,omitempty"`
// Line from caller new error
Line int `json:"line,omitempty"`
// Message error
Message string `json:"message,omitempty"`
// Endpoint from error
Endpoint string `json:"endpoint,omitempty"`
}
func NewEndpoint ¶ added in v1.0.5
NewEndpoint error detail with endpoint and message
func NewEndpointSkipCaller ¶ added in v1.0.5
NewEndpointSkipCaller error detail with message values separate per space with skipCaller and endpoint
func NewSkipCaller ¶
NewSkipCaller error detail with message values separate per space and skipCaller
func ParseToError ¶ added in v1.0.5
ParseToError parse value to error struct, if value an is not an Error, we create a new one from it as Error.Message.
Click to show internal directories.
Click to hide internal directories.