Skip to content

Replace SDKs catch (Exception e) to catch (Throwable e) #1806

Description

@marandaneto

SDK should not crash the finals App, but rather swallow and log it.
this would avoid issues such as #1800

Context: #1800 (comment)

Activity

  1. philippsuess commented on Nov 17, 2021

    @philippsuess

    Make sure to log out when we swallow a Throwable. We still need to find out how to log out.

  2. bruno-garcia commented on Nov 18, 2021

    @bruno-garcia
    Member

    The PR #1812 partially addresses this. See PR description for details.
    Goal: Changes all Java catch Exception to Throwable so we avoid crashes on Unity that should have been suppressed.

    For this issue I suggest we add a linter. So we avoid adding catch Exception again in the future. The linter should warn that throwable should be used to suppress all errors instead.

  3. removed their assignment
    on Nov 18, 2021
  4. romtsn commented on Oct 18, 2023

    @romtsn
    Contributor

    Added an additional point to #2685 to track the lint checks, closing this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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