package
0.1.0
Repository: https://github.com/codenamor/common.git
Documentation: pkg.go.dev

# Functions

Errorf creates an ErrorLog structure that populates the Err field by creating an error from pkg/errors that contains the current stack using the format and args.
FromError creates an ErrorLog structure populating the Err field.
New creates an ErrorLog structure that populates the Err field by creating an error from pkg/errors that contains the current stack.
NewRootMsgStatusCode creates an ErrorLog structure that populates the RootCause, StatusCode, and Err field by creating an error from pkg/errors that contains the current stack.
WithErrorAndCause creates an ErrorLog from an error and a RootCause, if err is nil then a nil is returned making it easy to use this to wrap whatever comes back from a function.

# Structs

ErrorLog struct is an structure for capturing detailed errors that implements the error interface so *ErrorLog can be passed anywhere errors are allowed.