package errors type GoMaxError struct { Message string Err error } func (ge *GoMaxError) Error() string { return ge.Err.Error() } func (ge *GoMaxError) Unwrap() error { return ge.Err } func New(parent error, text string) error { return &GoMaxError{ Message: text, Err: parent, } }