-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherero.go
49 lines (37 loc) · 938 Bytes
/
erero.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package erero
func Ero(err error) error {
return op.Ero(err)
}
func New(message string) error {
return op.New(message)
}
func WithMessage(err error, message string) error {
return op.WithMessage(err, message)
}
func WithMessagef(err error, format string, args ...interface{}) error {
return op.WithMessagef(err, format, args...)
}
func Errorf(format string, args ...interface{}) error {
return op.Errorf(format, args...)
}
func Is(err, target error) bool {
return op.Is(err, target)
}
func Ise(err, target error) bool {
return op.Ise(err, target)
}
func As(err error, target any) bool {
return op.As(err, target)
}
func Ase(err error, target any) bool {
return op.Ase(err, target)
}
func Wro(err error) error {
return op.Wro(err)
}
func Wrap(err error, message string) error {
return op.Wrap(err, message)
}
func Wrapf(err error, format string, args ...interface{}) error {
return op.Wrapf(err, format, args...)
}