Skip to content

Exception catch in onBackground? #1

@etemplar

Description

@etemplar

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()?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions