2021-09-23 10:11:54 +08:00
|
|
|
package errorx
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
// New TODO 添加链路追踪等 @bandl @lgq
|
2021-09-24 22:48:08 +08:00
|
|
|
func New(msg string, format ...interface{}) error {
|
|
|
|
msg = fmt.Sprintf(msg, format...)
|
2021-09-23 10:11:54 +08:00
|
|
|
return errors.New(msg)
|
|
|
|
}
|