openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

Get rid of all the RuntimeExceptions - It makes debugging and catching issues very complicated

Open henrykuijpers opened this issue 1 year ago • 0 comments

I see a lot of usages of RuntimeException, it seems the library tries to avoid having to catch exceptions? However, it is of course very useful to catch any exceptions.

It's even very useful to introduce new checked exceptions and also more specific exceptions, for example a TokenLimitReachedException, CompletionTimeoutException, etc.

henrykuijpers avatar Oct 30 '23 15:10 henrykuijpers