Commit 6886ee2
Johan Walles
Add path and status code to exception message (#75)
Before this change, if you got a RequestNotOkException in a log file, it
wasn't possible to see which request it was that failed.
With this change in place, the path and status code of the exception are
prepended to the exception message, and any logged exceptions will
contain information on what operation it was that failed.1 parent 12f5323 commit 6886ee2
File tree
1 file changed
+6
-2
lines changed- src/main/java/com/spotify/github/v3/exceptions
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments