Files
gomax/v1/errors/errors.go
T
2026-10-06 13:51:00 +03:00

18 lines
246 B
Go

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