Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Err error `json:"error"` FunctionName string `json:"functionName"` FileName string `json:"fileName"` LineNumber int `json:"lineNumber"` Message string `json:"message"` }
Error wraps an error with additional data that is used to create a stack strace.
func (*Error) MarshalJSON ¶ added in v0.2.2
MarshalJSON implements the json.Marshaler interface to provide a valid JSON output. This is required because errors created from errors.New() do not implement the fmt.Stringer interface and therefore will not print anything.
Click to show internal directories.
Click to hide internal directories.