You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all the failures returns exceptions like InputException, KiteException etc.
but they do not contain detailed error message that is coming from zerodha's rest API, for example, Markets are closed ....
This information is present in the mesasge field in the http response. It would be good if this message can be extracted and put it in the exception.
The text was updated successfully, but these errors were encountered:
Hi @kssujithcj , thanks for confirming. It does carry exception message.
But it would be good if KiteException constructor calls super(message) so that consumers of this library does not need to type check and extract exception message. This is also a common practice.
Instead of this:
// constructor that sets the messagepublicKiteException(Stringmessage){
this.message = message;
}
this:
// constructor that sets the messagepublicKiteException(Stringmessage){
this.message = message;
super(message)
}
Currently all the failures returns exceptions like
InputException
,KiteException
etc.but they do not contain detailed error message that is coming from zerodha's rest API, for example,
Markets are closed ...
.This information is present in the
mesasge
field in the http response. It would be good if this message can be extracted and put it in the exception.The text was updated successfully, but these errors were encountered: