Skip to content

How to write an advice that executes whenever object fn throws exception #1

@rvnath

Description

@rvnath

I am using db calls which return a Promise. But if DB ops fail, they throw an exception, which gets handled by the .catch(fn(){...}) block. Is there a way to execute an advice whenever there is an exception thrown?

I have also created a stackoverflow issue here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions