()
| 110 | } |
| 111 | |
| 112 | func ExampleXError_Values() { |
| 113 | err := New("error").With("level", "high") |
| 114 | |
| 115 | errLevel := err.Values()["level"] |
| 116 | |
| 117 | fmt.Println(errLevel) |
| 118 | |
| 119 | // Output: |
| 120 | // high |
| 121 | } |
| 122 | |
| 123 | func ExampleXError_Info() { |
| 124 | cause := errors.New("error") |