AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Is There a Way to Throw an Exception?
Sobasically, when you're working with external a p is, like the facebook api, you may make a h t t p request, and maybe it times out. And so in this case, because you, as a library writer, you do not know how to deal with that exception, you also need to throw an exception. But if it is essential for your application, lets say you are saving not a log entry, but the usure itself, then even if you know that this oram can throw an exception, you cannot do anything about that. You should basically allow it to pop up to the upper layers where it will be locked and theur obligation will crash.