Currently, the api does not expose any exception.
For instance when calling transactions.getTransactionList with an invalid bank account, you get a io.ktor.client.features.ClientRequestException because of the 404.
Instead the lib should expose a few exceptions and each endpoint should declare precisely what can be thrown in which case.
Currently, the api does not expose any exception.
For instance when calling
transactions.getTransactionListwith an invalid bank account, you get aio.ktor.client.features.ClientRequestExceptionbecause of the404.Instead the lib should expose a few exceptions and each endpoint should declare precisely what can be thrown in which case.