Commit 2646e79
committed
Updates Java UserAgent Error Handling
A concern was raised over the possibility of an Error being thrown during the
initialization of the UserAgent class resulting in the class to fail to load
and giving users an obscure NoClassDefFoundError. I'm upgrading the existing
catch(Exception)'s to catch(Throwable)'s to catch these potential Error's and
ensure that the user agent class will always load correctly. Any missing data
due to caught errors will be replaced with a default value of "NotAvailable"
Missing data in the user agent on rare occasions is a small concern and preferable
to the driver crashing altogether.1 parent c1d5e14 commit 2646e79
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util
- gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments