Unfortunately, this is not going to work without further sneakiness. Network errors aren't considered HTTP errors and will be grouped with HTTP transactions. Instead, use NewRelic.noticeHttpTransaction like so:
NewRelic.noticeHttpTransaction("http://exception.com/HomeFragment/updateUi/IllegalStateException", 500, time, time+1, 0, 0);
If you add http://exception/...
in front of the string, you'll pass the validation (although mind the characters in your string) and the error will show up on newrelic.com on the HTTP errors page. Adding exception
at the beginning will group these errors for easier reading. However, be warned that you'll be mixing these errors up with 'real' ones generated by your app.
Always good to hear New Relic is working well for you, thanks!