capacitor-secure-storage-plugin icon indicating copy to clipboard operation
capacitor-secure-storage-plugin copied to clipboard

Unicode support for web

Open lucaboy opened this issue 4 years ago • 2 comments

lucaboy avatar Sep 24 '20 21:09 lucaboy

Hello @lucaboy, is this supose to be real pull request? or are you just making changes to your forked copy?

martinkasa avatar Nov 12 '20 19:11 martinkasa

Not using Exception when not strictly needed is always a good idea, IHMO. Returning null is a bit of a weak alternative as all types of errors are now simply combined into one undifferentiatable NULL value.

IMHO, best would be to have a typed Result response what has all error states (maybe a enum and a description String that possibly contains the error from the underlying library), and all success states (in this case only one: the value that belongs to the key).

https://developer.paypal.com/braintree/docs/reference/general/result-objects/node

cies avatar Oct 21 '21 13:10 cies