This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.
SecureStorage.ios.cs throws improper Exceptions. #457
Open
Description
Bug report best practices: Submitting Issues
Description
The source code for SecureStorage.ios.cs throws System.Exception
instead of a more appropriate exception.
The first is in SetValueForKey. The second is in RemoveRecord
This is not a proper use of Exceptions. A developer should neither throw nor catch a System.Exception
per Microsoft's Best Practices.
Expected Behavior
A more appropriate exception that can be handled at runtime. For example, a System.ArgumentOutOfRangeException
if the value could not be removed because the key didn't exist.
Actual Behavior
If a value cannot be set or removed, a generic System.Exception
is thrown.
Basic Information
- Version with issue: 0.9.1
- Last known good version: N/A
- IDE: Visual Studio 2017 Enterprise
- Platform Target Frameworks:
- iOS: All versions
VS bug #735656