magnusja / libaums

Open source library to access USB Mass Storage devices on Android without rooting your device
Apache License 2.0
1.26k stars 270 forks source link

Switch to more informative exceptions #369

Closed depau closed 1 year ago

depau commented 1 year ago

This PR replaces the generic IOExceptions with richer children that carry the libusb return code and errno for any user that needs it up the stack as it is unwound.

This does not break any API since the new exceptions are all IOException children, but a few exception messages have changed.

codecov[bot] commented 1 year ago

Codecov Report

Merging #369 (5d4feb3) into develop (92b60a9) will decrease coverage by 0.37%. The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             develop     #369      +/-   ##
=============================================
- Coverage      57.59%   57.23%   -0.37%     
  Complexity       367      367              
=============================================
  Files             48       48              
  Lines           1738     1749      +11     
  Branches         241      243       +2     
=============================================
  Hits            1001     1001              
- Misses           665      676      +11     
  Partials          72       72              
Impacted Files Coverage Δ
...jahnen/libaums/core/driver/scsi/ScsiBlockDevice.kt 0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more