Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

chore: handle NumberFormatException

Fahim Masud Choudhury requested to merge 2299-2581-catch-exception into main

Description

This MR handles NumberFormatException in case a response from API couldn't be parsed to an integer.

Issues

https://gitlab.e.foundation/e/os/backlog/-/issues/2299?show=34866

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Summary by CodeRabbit

  • Bug Fixes
    • Improved error handling in the invite sending process to prevent crashes from unexpected string formats.
    • Enhanced robustness by returning -1 for invalid error codes instead of throwing exceptions.
Edited by CodeRabbitAI

Merge request reports

Loading