SugarTask icon indicating copy to clipboard operation
SugarTask copied to clipboard

Exception catch in onBackground?

Open etemplar opened this issue 10 years ago • 1 comments

Hi.

Could you please tell me, how I can delegate Exception from onBackground() to onBroken()?

I'm trying to run method that can throw IOException in onBackground(), but onBackground itself doesn't throw any Exceptions. Try/catch block is useless, because Exception is processed in catch block and SugarTask calls onFinished().

Is onBroken supposed to handle exceptions from functions in onBackground()?

etemplar avatar Oct 31 '15 17:10 etemplar

Next version will delegate Exception from onBackground() to onBroken().

mthli avatar Nov 07 '15 13:11 mthli