You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
400 B

3 years ago
package main
import (
"errs"
"fmt"
)
func callerA () {
callerB()
}
func callerB () {
e := errs.NewErrInfo(errs.ErrCode("Un-Error"),
errs.ErrInfoWithDate(),
errs.ErrInfoWithCause(errs.ErrCode("UnMalError")),
errs.ErrInfoWithField("Campo1",33),
errs.ErrInfoWithMessage("Esto es el mensage"),
errs.ErrInfoWithStack(0),
)
fmt.Print(e.String())
}
func main() {
callerA()
}

Powered by TurnKey Linux.