Skip to content

The safelyExecute​Function Swallows Exceptions #70

Closed

Description

@bdresser

Gaba often makes use of a utility function called safelyExecute. The purpose of this function is to call a supplied function without handling any exceptions or errors that may occur.

The safelyExecute function accepts a function that returns a Promise and then calls it inside of a try...catch block. The catch block does not handle exceptions, provide a way for the caller to handle them, or even log the error. Because of this failures and critical issues can go unnoticed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions