Skip to content

[request] using exception for error handling #139

@Azhng

Description

@Azhng

Is your feature request related to a problem? Please describe.
Currently, Popsift directly calls exit() function (example) when it encounters failures and directly logs into stderr.
Our application directly links to popsift and this results in our application crashing. This is quite difficult to handle since it would require the application to directly intercept the exit() call.

Describe the solution you'd like
Instead of directly calling exit(), it would be amazing to throw an exception so the application can gracefully catch it.

I'd be happy to send in a patch for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions