Petersoj / alpaca-java

A Java API for Alpaca, the commission free, algo friendly, stock trading broker. https://alpaca.markets
https://petersoj.github.io/alpaca-java/
MIT License
197 stars 82 forks source link

Add nullable annotations on various fields/methods in AlpacaClientException #130

Closed Kurru closed 1 year ago

Kurru commented 1 year ago

Add nullable annotations on various fields/methods in AlpacaClientException. These fields maybe null in unexpected scenarios.

I received an AlpacaClientException with null getResponseStatusCode() when calling alpacaApi.account().get(). Unfortunately, due to a NPE I lost the original AlpacaClientException stacktrace.

Petersoj commented 1 year ago

Thanks!