()
| 67 | } |
| 68 | |
| 69 | func ExampleXError_With() { |
| 70 | err := New("error").With("level", "high") |
| 71 | |
| 72 | errLevel := err.Values()["level"] |
| 73 | |
| 74 | fmt.Println(errLevel) |
| 75 | |
| 76 | // Output: |
| 77 | // high |
| 78 | } |
| 79 | |
| 80 | func ExampleXError_Id() { |
| 81 | err1 := New("error").Id("e001") |