With adds key and value related to the error object
(key string, value any)
| 126 | |
| 127 | // With adds key and value related to the error object |
| 128 | func (e *XError) With(key string, value any) *XError { |
| 129 | e.values[key] = value |
| 130 | return e |
| 131 | } |
| 132 | |
| 133 | // Is checks if target error is XError and Error.id of two errors are matched. |
| 134 | func (e *XError) Is(target error) bool { |
no outgoing calls