Skip to content

Exception catching mode. #165

@back2dos

Description

@back2dos

Via e.g. -D tink_core.catch_exceptions a few try/catch barriers would be added:

  1. in Promise.next/new/irreversible exceptions would be propagated as errors.
  2. In Callback.guardStackoverflow (which is where almost all dispatching goes through) any exceptions would be caught and reported, as well as all other places that call user code (e.g. CallbackLink.cancel).
  3. Add some Error.oncaught((e.Exception)->Void) where user can add errors reporters (if none are added, use console.error on JS and the closest possible thing on other platforms).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions